Class PutIndexPolicyRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsRequest
-
- software.amazon.awssdk.services.cloudwatchlogs.model.PutIndexPolicyRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutIndexPolicyRequest.Builder,PutIndexPolicyRequest>
@Generated("software.amazon.awssdk:codegen") public final class PutIndexPolicyRequest extends CloudWatchLogsRequest implements ToCopyableBuilder<PutIndexPolicyRequest.Builder,PutIndexPolicyRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutIndexPolicyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutIndexPolicyRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringlogGroupIdentifier()Specify either the log group name or log group ARN to apply this field index policy to.StringpolicyDocument()The index policy document, in JSON format.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PutIndexPolicyRequest.Builder>serializableBuilderClass()PutIndexPolicyRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
logGroupIdentifier
public final String logGroupIdentifier()
Specify either the log group name or log group ARN to apply this field index policy to. If you specify an ARN, use the format arn:aws:logs:region:account-id:log-group:log_group_name Don't include an * at the end.
- Returns:
- Specify either the log group name or log group ARN to apply this field index policy to. If you specify an ARN, use the format arn:aws:logs:region:account-id:log-group:log_group_name Don't include an * at the end.
-
policyDocument
public final String policyDocument()
The index policy document, in JSON format. The following is an example of an index policy document that creates two indexes,
RequestIdandTransactionId."policyDocument": "{ "Fields": [ "RequestId", "TransactionId" ] }"The policy document must include at least one field index. For more information about the fields that can be included and other restrictions, see Field index syntax and quotas.
- Returns:
- The index policy document, in JSON format. The following is an example of an index policy document that
creates two indexes,
RequestIdandTransactionId."policyDocument": "{ "Fields": [ "RequestId", "TransactionId" ] }"The policy document must include at least one field index. For more information about the fields that can be included and other restrictions, see Field index syntax and quotas.
-
toBuilder
public PutIndexPolicyRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutIndexPolicyRequest.Builder,PutIndexPolicyRequest>- Specified by:
toBuilderin classCloudWatchLogsRequest
-
builder
public static PutIndexPolicyRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutIndexPolicyRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-