Class EffectivePolicy
- java.lang.Object
-
- software.amazon.awssdk.services.organizations.model.EffectivePolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<EffectivePolicy.Builder,EffectivePolicy>
@Generated("software.amazon.awssdk:codegen") public final class EffectivePolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<EffectivePolicy.Builder,EffectivePolicy>
Contains rules to be applied to the affected accounts. The effective policy is the aggregation of any policies the account inherits, plus any policy directly attached to the account.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEffectivePolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EffectivePolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastUpdatedTimestamp()The time of the last update to this policy.StringpolicyContent()The text content of the policy.EffectivePolicyTypepolicyType()The policy type.StringpolicyTypeAsString()The policy type.List<SdkField<?>>sdkFields()static Class<? extends EffectivePolicy.Builder>serializableBuilderClass()StringtargetId()The account ID of the policy target.EffectivePolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
policyContent
public final String policyContent()
The text content of the policy.
- Returns:
- The text content of the policy.
-
lastUpdatedTimestamp
public final Instant lastUpdatedTimestamp()
The time of the last update to this policy.
- Returns:
- The time of the last update to this policy.
-
targetId
public final String targetId()
The account ID of the policy target.
- Returns:
- The account ID of the policy target.
-
policyType
public final EffectivePolicyType policyType()
The policy type.
If the service returns an enum value that is not available in the current SDK version,
policyTypewill returnEffectivePolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The policy type.
- See Also:
EffectivePolicyType
-
policyTypeAsString
public final String policyTypeAsString()
The policy type.
If the service returns an enum value that is not available in the current SDK version,
policyTypewill returnEffectivePolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The policy type.
- See Also:
EffectivePolicyType
-
toBuilder
public EffectivePolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<EffectivePolicy.Builder,EffectivePolicy>
-
builder
public static EffectivePolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends EffectivePolicy.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.
-
-