Interface PolicyDefinition.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyDefinition.Builder,PolicyDefinition>,SdkBuilder<PolicyDefinition.Builder,PolicyDefinition>,SdkPojo
- Enclosing class:
- PolicyDefinition
public static interface PolicyDefinition.Builder extends SdkPojo, CopyableBuilder<PolicyDefinition.Builder,PolicyDefinition>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default PolicyDefinition.BuilderstaticValue(Consumer<StaticPolicyDefinition.Builder> staticValue)A structure that describes a static policy.PolicyDefinition.BuilderstaticValue(StaticPolicyDefinition staticValue)A structure that describes a static policy.default PolicyDefinition.BuildertemplateLinked(Consumer<TemplateLinkedPolicyDefinition.Builder> templateLinked)A structure that describes a policy that was instantiated from a template.PolicyDefinition.BuildertemplateLinked(TemplateLinkedPolicyDefinition templateLinked)A structure that describes a policy that was instantiated from a template.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
staticValue
PolicyDefinition.Builder staticValue(StaticPolicyDefinition staticValue)
A structure that describes a static policy. An static policy doesn't use a template or allow placeholders for entities.
- Parameters:
staticValue- A structure that describes a static policy. An static policy doesn't use a template or allow placeholders for entities.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
staticValue
default PolicyDefinition.Builder staticValue(Consumer<StaticPolicyDefinition.Builder> staticValue)
A structure that describes a static policy. An static policy doesn't use a template or allow placeholders for entities.
This is a convenience method that creates an instance of theStaticPolicyDefinition.Builderavoiding the need to create one manually viaStaticPolicyDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostaticValue(StaticPolicyDefinition).- Parameters:
staticValue- a consumer that will call methods onStaticPolicyDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
staticValue(StaticPolicyDefinition)
-
templateLinked
PolicyDefinition.Builder templateLinked(TemplateLinkedPolicyDefinition templateLinked)
A structure that describes a policy that was instantiated from a template. The template can specify placeholders for
principalandresource. When you use CreatePolicy to create a policy from a template, you specify the exact principal and resource to use for the instantiated policy.- Parameters:
templateLinked- A structure that describes a policy that was instantiated from a template. The template can specify placeholders forprincipalandresource. When you use CreatePolicy to create a policy from a template, you specify the exact principal and resource to use for the instantiated policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
templateLinked
default PolicyDefinition.Builder templateLinked(Consumer<TemplateLinkedPolicyDefinition.Builder> templateLinked)
A structure that describes a policy that was instantiated from a template. The template can specify placeholders for
This is a convenience method that creates an instance of theprincipalandresource. When you use CreatePolicy to create a policy from a template, you specify the exact principal and resource to use for the instantiated policy.TemplateLinkedPolicyDefinition.Builderavoiding the need to create one manually viaTemplateLinkedPolicyDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemplateLinked(TemplateLinkedPolicyDefinition).- Parameters:
templateLinked- a consumer that will call methods onTemplateLinkedPolicyDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
templateLinked(TemplateLinkedPolicyDefinition)
-
-