@Generated(value="software.amazon.awssdk:codegen") public class Policy extends Object implements StructuredPojo, 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() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
PolicySummary |
policySummary()
A structure that contains additional details about the policy.
|
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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.