Interface PolicyDefinition.Builder
- All Superinterfaces:
 Buildable,CopyableBuilder<PolicyDefinition.Builder,,PolicyDefinition> SdkBuilder<PolicyDefinition.Builder,,PolicyDefinition> SdkPojo
- Enclosing class:
 PolicyDefinition
- 
Method Summary
Modifier and TypeMethodDescriptiondefault PolicyDefinition.BuilderstaticValue(Consumer<StaticPolicyDefinition.Builder> staticValue) A structure that describes a static policy.staticValue(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.templateLinked(TemplateLinkedPolicyDefinition templateLinked) A structure that describes a policy that was instantiated from a template.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields 
- 
Method Details
- 
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
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:
 
 - 
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:
 
 
 -