PrivMX DOCS
API Reference/PrivMX Endpoint Java Extra/Core

ContainerPolicyBuilder

Builder for creating instances of ContainerPolicyWithoutItem and ContainerPolicy.

Constructors

ContainerPolicyBuilder

Creates instance of ContainerPolicyBuilder initialized with Bridge's default policy values.

public void ContainerPolicyBuilder()

ContainerPolicyBuilder

Creates instance of ContainerPolicyBuilder initialized with policy values from existing ContainerPolicy instance.

Params

containerPolicy

ContainerPolicy

the existing ContainerPolicy instance to copy values from.

public void ContainerPolicyBuilder(
ContainerPolicy containerPolicy
)

ContainerPolicyBuilder

Creates instance of ContainerPolicyBuilder initialized with policy values from existing ContainerPolicyWithoutItem instance.

Params

containerPolicyWithoutItem

ContainerPolicyWithoutItem

the existing ContainerPolicyWithoutItem instance to copy values from.

public void ContainerPolicyBuilder(
ContainerPolicyWithoutItem containerPolicyWithoutItem
)

Methods

build

Creates ContainerPolicy from current state.

public ContainerPolicy build()

Returns

ContainerPolicy · new ContainerPolicy instance created from this builder policies.

buildWithoutItem

Creates ContainerPolicyWithoutItem from current state.

public ContainerPolicyWithoutItem buildWithoutItem()

Returns

ContainerPolicyWithoutItem · new ContainerPolicyWithoutItem instance created from this builder policies.

setDelete

Sets ContainerPolicyWithoutItem#delete policy value.

Params

policyValue

ContainerPolicyValue

policy value to set

public ContainerPolicyBuilder setDelete(
ContainerPolicyValue policyValue
)

Returns

ContainerPolicyBuilder · ContainerPolicyBuilder instance to allow for method chaining.

setGet

Sets ContainerPolicyWithoutItem#get policy value.

Params

policyValue

ContainerPolicyValue

policy value to set

public ContainerPolicyBuilder setGet(
ContainerPolicyValue policyValue
)

Returns

ContainerPolicyBuilder · ContainerPolicyBuilder instance to allow for method chaining.

setItem

Sets ContainerPolicy#item items policy value.

Params

item

ItemPolicy

policy value to set

public ContainerPolicyBuilder setItem(
ItemPolicy item
)

Returns

ContainerPolicyBuilder · ContainerPolicyBuilder instance to allow for method chaining.

setOwnerCanBeRemovedFromManagers

Sets ContainerPolicyWithoutItem#ownerCanBeRemovedFromManagers policy value.

Params

policyValue

SpecialPolicyValue

policy value to set

public ContainerPolicyBuilder setOwnerCanBeRemovedFromManagers(
SpecialPolicyValue policyValue
)

Returns

ContainerPolicyBuilder · ContainerPolicyBuilder instance to allow for method chaining.

setUpdate

Sets ContainerPolicyWithoutItem#update policy value.

Params

policyValue

ContainerPolicyValue

policy value to set

public ContainerPolicyBuilder setUpdate(
ContainerPolicyValue policyValue
)

Returns

ContainerPolicyBuilder · ContainerPolicyBuilder instance to allow for method chaining.

setUpdatePolicy

Sets ContainerPolicyWithoutItem#updatePolicy policy value.

Params

policyValue

ContainerPolicyValue

policy value to set

public ContainerPolicyBuilder setUpdatePolicy(
ContainerPolicyValue policyValue
)

Returns

ContainerPolicyBuilder · ContainerPolicyBuilder instance to allow for method chaining.

setUpdaterCanBeRemovedFromManagers

Sets ContainerPolicyWithoutItem#updaterCanBeRemovedFromManagers policy value.

Params

policyValue

SpecialPolicyValue

policy value to set

public ContainerPolicyBuilder setUpdaterCanBeRemovedFromManagers(
SpecialPolicyValue policyValue
)

Returns

ContainerPolicyBuilder · ContainerPolicyBuilder instance to allow for method chaining.

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.