ContainerPolicyBuilder
Methods
init()
Creates a fresh ContainerPolicyBuilder
init(from:)
Initalises the builder with existing policies.
public init(
from policy: privmx.endpoint.core.ContainerPolicy
)
Name | Type | Description |
---|
policy | privmx.endpoint.core.ContainerPolicy | preexisting policy object. |
init(from:)
Initalises the builder with existing policies.
public init(
from policy: privmx.endpoint.core.ContainerPolicyWithoutItem
)
Name | Type | Description |
---|
policy | privmx.endpoint.core.ContainerPolicyWithoutItem | preexisting policy object. |
build()
This methods returns a ContainerPolicy
that was configured by this instance.
public func build(
) -> privmx.endpoint.core.ContainerPolicy
Type | Description |
---|
privmx.endpoint.core.ContainerPolicy | configured `ContainerPolicy`
|
buildWithoutItem()
This methods returns a ContainerPolicyWithoutItem
that was configured by this instance.
public func buildWithoutItem(
) -> privmx.endpoint.core.ContainerPolicyWithoutItem
Type | Description |
---|
privmx.endpoint.core.ContainerPolicyWithoutItem | configured `ContainerPolicyWithoutItem`
|
setGet(_:)
Configures the get
policy
public func setGet(
_ value:ContainerPolicyValue?
) -> ContainerPolicyBuilder
Name | Type | Description |
---|
value | ContainerPolicyValue? | the policy value that will be set |
Type | Description |
---|
ContainerPolicyBuilder | this object for further configuration
|
setUpdate(_:)
Configures the update
policy
public func setUpdate(
_ value:ContainerPolicyValue?
) -> ContainerPolicyBuilder
Name | Type | Description |
---|
value | ContainerPolicyValue? | the policy value that will be set |
Type | Description |
---|
ContainerPolicyBuilder | this object for further configuration
|
setDelete(_:)
Configures the delete
policy
public func setDelete(
_ value:ContainerPolicyValue
) -> ContainerPolicyBuilder
Name | Type | Description |
---|
value | ContainerPolicyValue | the policy value that will be set |
Type | Description |
---|
ContainerPolicyBuilder | this object for further configuration
|
setUpdatePolicy(_:)
Configures the updatePolicy
policy
public func setUpdatePolicy(
_ value:ContainerPolicyValue
) -> ContainerPolicyBuilder
Name | Type | Description |
---|
value | ContainerPolicyValue | the policy value that will be set |
Type | Description |
---|
ContainerPolicyBuilder | this object for further configuration
|
setUpdaterCanBeRemovedFromManagers(_:)
Configures the updaterCanBeRemovedFromManagers
policy
public func setUpdaterCanBeRemovedFromManagers(
_ value: SpecialPolicyValue?
) -> ContainerPolicyBuilder
Name | Type | Description |
---|
value | SpecialPolicyValue? | the policy value that will be set |
Type | Description |
---|
ContainerPolicyBuilder | this object for further configuration
|
setOwnerCanBeRemovedFromManagers(_:)
Configures the ownerCanBeRemovedFromManagers
policy
public func setOwnerCanBeRemovedFromManagers(
_ value: SpecialPolicyValue?
) -> ContainerPolicyBuilder
Name | Type | Description |
---|
value | SpecialPolicyValue? | the policy value that will be set |
Type | Description |
---|
ContainerPolicyBuilder | this object for further configuration
|
setItem(_:)
Configures the item
policy
public func setItem(
_ value: privmx.endpoint.core.ItemPolicy?
) -> ContainerPolicyBuilder
Name | Type | Description |
---|
value | privmx.endpoint.core.ItemPolicy? | the policy value that will be set |
Type | Description |
---|
ContainerPolicyBuilder | this object for further configuration
|