@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
EffectivePolicy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static EffectivePolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Instant |
lastUpdatedTimestamp()
The time of the last update to this policy.
|
String |
policyContent()
The text content of the policy.
|
EffectivePolicyType |
policyType()
The policy type.
|
String |
policyTypeAsString()
The policy type.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends EffectivePolicy.Builder> |
serializableBuilderClass() |
String |
targetId()
The account ID of the policy target.
|
EffectivePolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String policyContent()
The text content of the policy.
public final Instant lastUpdatedTimestamp()
The time of the last update to this policy.
public final String targetId()
The account ID of the policy target.
public final EffectivePolicyType policyType()
The policy type.
If the service returns an enum value that is not available in the current SDK version, policyType will
return EffectivePolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from policyTypeAsString().
EffectivePolicyTypepublic final String policyTypeAsString()
The policy type.
If the service returns an enum value that is not available in the current SDK version, policyType will
return EffectivePolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from policyTypeAsString().
EffectivePolicyTypepublic EffectivePolicy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<EffectivePolicy.Builder,EffectivePolicy>public static EffectivePolicy.Builder builder()
public static Class<? extends EffectivePolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.