StructuredPojo, ToCopyableBuilder<Policy.Builder,Policy>@Generated("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 | Description |
|---|---|---|
static interface |
Policy.Builder |
| Modifier and Type | Method | Description |
|---|---|---|
static Policy.Builder |
builder() |
|
String |
content() |
The text content of the policy.
|
boolean |
equals(Object obj) |
|
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() |
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()
ToCopyableBuildertoBuilder in interface ToCopyableBuilder<Policy.Builder,Policy>public static Policy.Builder builder()
public static Class<? extends Policy.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.