Class AccountPolicy
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AccountPolicy.Builder,AccountPolicy>
A structure that contains information about one CloudWatch Logs account policy.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe Amazon Web Services account ID that the policy applies to.static AccountPolicy.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final LongThe date and time that this policy was most recently updated.final StringThe policy document for this account policy.final StringThe name of the account policy.final PolicyTypeThe type of policy for this account policy.final StringThe type of policy for this account policy.final Scopescope()The scope of the account policy.final StringThe scope of the account policy.final StringThe log group selection criteria that is used for this policy.static Class<? extends AccountPolicy.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
policyName
The name of the account policy.
- Returns:
- The name of the account policy.
-
policyDocument
The policy document for this account policy.
The JSON specified in
policyDocumentcan be up to 30,720 characters.- Returns:
- The policy document for this account policy.
The JSON specified in
policyDocumentcan be up to 30,720 characters.
-
lastUpdatedTime
The date and time that this policy was most recently updated.
- Returns:
- The date and time that this policy was most recently updated.
-
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,
policyTypewill returnPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The type of policy for this account policy.
- See Also:
-
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,
policyTypewill returnPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The type of policy for this account policy.
- See Also:
-
scope
The scope of the account policy.
If the service returns an enum value that is not available in the current SDK version,
scopewill returnScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscopeAsString().- Returns:
- The scope of the account policy.
- See Also:
-
scopeAsString
The scope of the account policy.
If the service returns an enum value that is not available in the current SDK version,
scopewill returnScope.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromscopeAsString().- Returns:
- The scope of the account policy.
- See Also:
-
selectionCriteria
The log group selection criteria that is used for this policy.
- Returns:
- The log group selection criteria that is used for this policy.
-
accountId
The Amazon Web Services account ID that the policy applies to.
- Returns:
- The Amazon Web Services account ID that the policy applies to.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<AccountPolicy.Builder,AccountPolicy>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-