@Generated(value="software.amazon.awssdk:codegen") public final class Policy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Policy.Builder,Policy>
Contains rules to be applied to the affected accounts. Policies can be attached directly to accounts, or to roots and OUs to affect all accounts in those hierarchies.
Modifier and Type | Class and Description |
---|---|
static interface |
Policy.Builder |
Modifier and Type | Method and Description |
---|---|
static Policy.Builder |
builder() |
String |
content()
The text content of the policy.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
PolicySummary |
policySummary()
A structure that contains additional details about the policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Policy.Builder> |
serializableBuilderClass() |
Policy.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public PolicySummary policySummary()
A structure that contains additional details about the policy.
public String content()
The text content of the policy.
public Policy.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Policy.Builder,Policy>
public static Policy.Builder builder()
public static Class<? extends Policy.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.