Skip to main content

ContainerPolicyBuilder

Methods

init()

Creates a fresh ContainerPolicyBuilder

public init()

init(from:)

Initalises the builder with existing policies.

public init(
from policy: privmx.endpoint.core.ContainerPolicy
)

NameTypeDescription
policyprivmx.endpoint.core.ContainerPolicypreexisting policy object.

init(from:)

Initalises the builder with existing policies.

public init(
from policy: privmx.endpoint.core.ContainerPolicyWithoutItem
)

NameTypeDescription
policyprivmx.endpoint.core.ContainerPolicyWithoutItempreexisting policy object.

build()

This methods returns a ContainerPolicy that was configured by this instance.

public func build(
) -> privmx.endpoint.core.ContainerPolicy

TypeDescription
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

TypeDescription
privmx.endpoint.core.ContainerPolicyWithoutItem configured `ContainerPolicyWithoutItem`

setGet(_:)

Configures the get policy

public func setGet(
_ value:ContainerPolicyValue?
) -> ContainerPolicyBuilder

NameTypeDescription
valueContainerPolicyValue?the policy value that will be set

TypeDescription
ContainerPolicyBuilder this object for further configuration

setUpdate(_:)

Configures the update policy

public func setUpdate(
_ value:ContainerPolicyValue?
) -> ContainerPolicyBuilder

NameTypeDescription
valueContainerPolicyValue?the policy value that will be set

TypeDescription
ContainerPolicyBuilder this object for further configuration

setDelete(_:)

Configures the delete policy

public func setDelete(
_ value:ContainerPolicyValue
) -> ContainerPolicyBuilder

NameTypeDescription
valueContainerPolicyValuethe policy value that will be set

TypeDescription
ContainerPolicyBuilder this object for further configuration

setUpdatePolicy(_:)

Configures the updatePolicy policy

public func setUpdatePolicy(
_ value:ContainerPolicyValue
) -> ContainerPolicyBuilder

NameTypeDescription
valueContainerPolicyValuethe policy value that will be set

TypeDescription
ContainerPolicyBuilder this object for further configuration

setUpdaterCanBeRemovedFromManagers(_:)

Configures the updaterCanBeRemovedFromManagers policy

public func setUpdaterCanBeRemovedFromManagers(
_ value: SpecialPolicyValue?
) -> ContainerPolicyBuilder

NameTypeDescription
valueSpecialPolicyValue?the policy value that will be set

TypeDescription
ContainerPolicyBuilder this object for further configuration

setOwnerCanBeRemovedFromManagers(_:)

Configures the ownerCanBeRemovedFromManagers policy

public func setOwnerCanBeRemovedFromManagers(
_ value: SpecialPolicyValue?
) -> ContainerPolicyBuilder

NameTypeDescription
valueSpecialPolicyValue?the policy value that will be set

TypeDescription
ContainerPolicyBuilder this object for further configuration

setItem(_:)

Configures the item policy

public func setItem(
_ value: privmx.endpoint.core.ItemPolicy?
) -> ContainerPolicyBuilder

NameTypeDescription
valueprivmx.endpoint.core.ItemPolicy?the policy value that will be set

TypeDescription
ContainerPolicyBuilder this object for further configuration