Class PutMetricPolicyRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.mediastore.model.MediaStoreRequest
-
- software.amazon.awssdk.services.mediastore.model.PutMetricPolicyRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutMetricPolicyRequest.Builder,PutMetricPolicyRequest>
@Generated("software.amazon.awssdk:codegen") public final class PutMetricPolicyRequest extends MediaStoreRequest implements ToCopyableBuilder<PutMetricPolicyRequest.Builder,PutMetricPolicyRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutMetricPolicyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutMetricPolicyRequest.Builderbuilder()StringcontainerName()The name of the container that you want to add the metric policy to.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()MetricPolicymetricPolicy()The metric policy that you want to associate with the container.List<SdkField<?>>sdkFields()static Class<? extends PutMetricPolicyRequest.Builder>serializableBuilderClass()PutMetricPolicyRequest.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
-
containerName
public final String containerName()
The name of the container that you want to add the metric policy to.
- Returns:
- The name of the container that you want to add the metric policy to.
-
metricPolicy
public final MetricPolicy metricPolicy()
The metric policy that you want to associate with the container. In the policy, you must indicate whether you want MediaStore to send container-level metrics. You can also include up to five rules to define groups of objects that you want MediaStore to send object-level metrics for. If you include rules in the policy, construct each rule with both of the following:
-
An object group that defines which objects to include in the group. The definition can be a path or a file name, but it can't have more than 900 characters. Valid characters are: a-z, A-Z, 0-9, _ (underscore), = (equal), : (colon), . (period), - (hyphen), ~ (tilde), / (forward slash), and * (asterisk). Wildcards (*) are acceptable.
-
An object group name that allows you to refer to the object group. The name can't have more than 30 characters. Valid characters are: a-z, A-Z, 0-9, and _ (underscore).
- Returns:
- The metric policy that you want to associate with the container. In the policy, you must indicate whether
you want MediaStore to send container-level metrics. You can also include up to five rules to define
groups of objects that you want MediaStore to send object-level metrics for. If you include rules in the
policy, construct each rule with both of the following:
-
An object group that defines which objects to include in the group. The definition can be a path or a file name, but it can't have more than 900 characters. Valid characters are: a-z, A-Z, 0-9, _ (underscore), = (equal), : (colon), . (period), - (hyphen), ~ (tilde), / (forward slash), and * (asterisk). Wildcards (*) are acceptable.
-
An object group name that allows you to refer to the object group. The name can't have more than 30 characters. Valid characters are: a-z, A-Z, 0-9, and _ (underscore).
-
-
-
toBuilder
public PutMetricPolicyRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutMetricPolicyRequest.Builder,PutMetricPolicyRequest>- Specified by:
toBuilderin classMediaStoreRequest
-
builder
public static PutMetricPolicyRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutMetricPolicyRequest.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
-
-