@Generated(value="software.amazon.awssdk:codegen") public final class AccountPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AccountPolicy.Builder,AccountPolicy>
A structure that contains information about one CloudWatch Logs account policy.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AccountPolicy.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountId()
The Amazon Web Services account ID that the policy applies to.
|
static AccountPolicy.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Long |
lastUpdatedTime()
The date and time that this policy was most recently updated.
|
String |
policyDocument()
The policy document for this account policy.
|
String |
policyName()
The name of the account policy.
|
PolicyType |
policyType()
The type of policy for this account policy.
|
String |
policyTypeAsString()
The type of policy for this account policy.
|
Scope |
scope()
The scope of the account policy.
|
String |
scopeAsString()
The scope of the account policy.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AccountPolicy.Builder> |
serializableBuilderClass() |
AccountPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String policyName()
The name of the account policy.
public final String policyDocument()
The policy document for this account policy.
The JSON specified in policyDocument can be up to 30,720 characters.
The JSON specified in policyDocument can be up to 30,720 characters.
public final Long lastUpdatedTime()
The date and time that this policy was most recently updated.
public final PolicyType policyType()
The type of policy for this account policy.
If the service returns an enum value that is not available in the current SDK version, policyType will
return PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
policyTypeAsString().
PolicyTypepublic final String policyTypeAsString()
The type of policy for this account policy.
If the service returns an enum value that is not available in the current SDK version, policyType will
return PolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
policyTypeAsString().
PolicyTypepublic final Scope scope()
The scope of the account policy.
If the service returns an enum value that is not available in the current SDK version, scope will return
Scope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scopeAsString().
Scopepublic final String scopeAsString()
The scope of the account policy.
If the service returns an enum value that is not available in the current SDK version, scope will return
Scope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
scopeAsString().
Scopepublic final String accountId()
The Amazon Web Services account ID that the policy applies to.
public AccountPolicy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AccountPolicy.Builder,AccountPolicy>public static AccountPolicy.Builder builder()
public static Class<? extends AccountPolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.