Class MetricPolicyRule
- java.lang.Object
-
- software.amazon.awssdk.services.mediastore.model.MetricPolicyRule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MetricPolicyRule.Builder,MetricPolicyRule>
@Generated("software.amazon.awssdk:codegen") public final class MetricPolicyRule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricPolicyRule.Builder,MetricPolicyRule>
A setting that enables metrics at the object level. Each rule contains an object group and an object group name. If the policy includes the MetricPolicyRules parameter, you must include at least one rule. Each metric policy can include up to five rules by default. You can also request a quota increase to allow up to 300 rules per policy.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMetricPolicyRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricPolicyRule.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringobjectGroup()A path or file name that defines which objects to include in the group.StringobjectGroupName()A name that allows you to refer to the object group.List<SdkField<?>>sdkFields()static Class<? extends MetricPolicyRule.Builder>serializableBuilderClass()MetricPolicyRule.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
objectGroup
public final String objectGroup()
A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable.
- Returns:
- A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable.
-
objectGroupName
public final String objectGroupName()
A name that allows you to refer to the object group.
- Returns:
- A name that allows you to refer to the object group.
-
toBuilder
public MetricPolicyRule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MetricPolicyRule.Builder,MetricPolicyRule>
-
builder
public static MetricPolicyRule.Builder builder()
-
serializableBuilderClass
public static Class<? extends MetricPolicyRule.Builder> serializableBuilderClass()
-
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.
-
-