Interface PolicyDefinition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<PolicyDefinition.Builder,
,PolicyDefinition> SdkBuilder<PolicyDefinition.Builder,
,PolicyDefinition> SdkPojo
- Enclosing class:
PolicyDefinition
-
Method Summary
Modifier and TypeMethodDescriptiondefault PolicyDefinition.Builder
staticValue
(Consumer<StaticPolicyDefinition.Builder> staticValue) A structure that describes a static policy.staticValue
(StaticPolicyDefinition staticValue) A structure that describes a static policy.default PolicyDefinition.Builder
templateLinked
(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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builder
avoiding the need to create one manually viaStaticPolicyDefinition.builder()
.When the
Consumer
completes,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
principal
andresource
. 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 forprincipal
andresource
. 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 theprincipal
andresource
. 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.Builder
avoiding the need to create one manually viaTemplateLinkedPolicyDefinition.builder()
.When the
Consumer
completes,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:
-