Class PolicyDefinitionDetail
- java.lang.Object
-
- software.amazon.awssdk.services.verifiedpermissions.model.PolicyDefinitionDetail
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PolicyDefinitionDetail.Builder,PolicyDefinitionDetail>
@Generated("software.amazon.awssdk:codegen") public final class PolicyDefinitionDetail extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PolicyDefinitionDetail.Builder,PolicyDefinitionDetail>
A structure that describes a policy definition. It must always have either an
staticor atemplateLinkedelement.This data type is used as a response parameter for the GetPolicy operation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePolicyDefinitionDetail.Builderstatic classPolicyDefinitionDetail.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyDefinitionDetail.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static PolicyDefinitionDetailfromStaticValue(Consumer<StaticPolicyDefinitionDetail.Builder> staticValue)Create an instance of this class withstaticValue()initialized to the given value.static PolicyDefinitionDetailfromStaticValue(StaticPolicyDefinitionDetail staticValue)Create an instance of this class withstaticValue()initialized to the given value.static PolicyDefinitionDetailfromTemplateLinked(Consumer<TemplateLinkedPolicyDefinitionDetail.Builder> templateLinked)Create an instance of this class withtemplateLinked()initialized to the given value.static PolicyDefinitionDetailfromTemplateLinked(TemplateLinkedPolicyDefinitionDetail 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 PolicyDefinitionDetail.Builder>serializableBuilderClass()StaticPolicyDefinitionDetailstaticValue()Information about a static policy that wasn't created with a policy template.TemplateLinkedPolicyDefinitionDetailtemplateLinked()Information about a template-linked policy that was created by instantiating a policy template.PolicyDefinitionDetail.BuildertoBuilder()StringtoString()Returns a string representation of this object.PolicyDefinitionDetail.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 StaticPolicyDefinitionDetail 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 TemplateLinkedPolicyDefinitionDetail 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 PolicyDefinitionDetail.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PolicyDefinitionDetail.Builder,PolicyDefinitionDetail>
-
builder
public static PolicyDefinitionDetail.Builder builder()
-
serializableBuilderClass
public static Class<? extends PolicyDefinitionDetail.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 PolicyDefinitionDetail fromStaticValue(StaticPolicyDefinitionDetail 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 PolicyDefinitionDetail fromStaticValue(Consumer<StaticPolicyDefinitionDetail.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 PolicyDefinitionDetail fromTemplateLinked(TemplateLinkedPolicyDefinitionDetail 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 PolicyDefinitionDetail fromTemplateLinked(Consumer<TemplateLinkedPolicyDefinitionDetail.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 PolicyDefinitionDetail.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 bePolicyDefinitionDetail.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 bePolicyDefinitionDetail.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-