Class PolicyDefinitionItem
- java.lang.Object
-
- software.amazon.awssdk.services.verifiedpermissions.model.PolicyDefinitionItem
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PolicyDefinitionItem.Builder,PolicyDefinitionItem>
@Generated("software.amazon.awssdk:codegen") public final class PolicyDefinitionItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyDefinitionItem.Builder,PolicyDefinitionItem>
A structure that describes a PolicyDefinintion. It will always have either an
StaticPolicyor aTemplateLinkedPolicyelement.This data type is used as a response parameter for the CreatePolicy and ListPolicies operations.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePolicyDefinitionItem.Builderstatic classPolicyDefinitionItem.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyDefinitionItem.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static PolicyDefinitionItemfromStaticValue(Consumer<StaticPolicyDefinitionItem.Builder> staticValue)Create an instance of this class withstaticValue()initialized to the given value.static PolicyDefinitionItemfromStaticValue(StaticPolicyDefinitionItem staticValue)Create an instance of this class withstaticValue()initialized to the given value.static PolicyDefinitionItemfromTemplateLinked(Consumer<TemplateLinkedPolicyDefinitionItem.Builder> templateLinked)Create an instance of this class withtemplateLinked()initialized to the given value.static PolicyDefinitionItemfromTemplateLinked(TemplateLinkedPolicyDefinitionItem templateLinked)Create an instance of this class withtemplateLinked()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends PolicyDefinitionItem.Builder>serializableBuilderClass()StaticPolicyDefinitionItemstaticValue()Information about a static policy that wasn't created with a policy template.TemplateLinkedPolicyDefinitionItemtemplateLinked()Information about a template-linked policy that was created by instantiating a policy template.PolicyDefinitionItem.BuildertoBuilder()StringtoString()Returns a string representation of this object.PolicyDefinitionItem.Typetype()Retrieve an enum value representing which member of this object is populated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
staticValue
public final StaticPolicyDefinitionItem staticValue()
Information about a static policy that wasn't created with a policy template.
- Returns:
- Information about a static policy that wasn't created with a policy template.
-
templateLinked
public final TemplateLinkedPolicyDefinitionItem templateLinked()
Information about a template-linked policy that was created by instantiating a policy template.
- Returns:
- Information about a template-linked policy that was created by instantiating a policy template.
-
toBuilder
public PolicyDefinitionItem.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PolicyDefinitionItem.Builder,PolicyDefinitionItem>
-
builder
public static PolicyDefinitionItem.Builder builder()
-
serializableBuilderClass
public static Class<? extends PolicyDefinitionItem.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
fromStaticValue
public static PolicyDefinitionItem fromStaticValue(StaticPolicyDefinitionItem staticValue)
Create an instance of this class withstaticValue()initialized to the given value.Information about a static policy that wasn't created with a policy template.
- Parameters:
staticValue- Information about a static policy that wasn't created with a policy template.
-
fromStaticValue
public static PolicyDefinitionItem fromStaticValue(Consumer<StaticPolicyDefinitionItem.Builder> staticValue)
Create an instance of this class withstaticValue()initialized to the given value.Information about a static policy that wasn't created with a policy template.
- Parameters:
staticValue- Information about a static policy that wasn't created with a policy template.
-
fromTemplateLinked
public static PolicyDefinitionItem fromTemplateLinked(TemplateLinkedPolicyDefinitionItem templateLinked)
Create an instance of this class withtemplateLinked()initialized to the given value.Information about a template-linked policy that was created by instantiating a policy template.
- Parameters:
templateLinked- Information about a template-linked policy that was created by instantiating a policy template.
-
fromTemplateLinked
public static PolicyDefinitionItem fromTemplateLinked(Consumer<TemplateLinkedPolicyDefinitionItem.Builder> templateLinked)
Create an instance of this class withtemplateLinked()initialized to the given value.Information about a template-linked policy that was created by instantiating a policy template.
- Parameters:
templateLinked- Information about a template-linked policy that was created by instantiating a policy template.
-
type
public PolicyDefinitionItem.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will bePolicyDefinitionItem.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will bePolicyDefinitionItem.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-