@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetricPolicyRule.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MetricPolicyRule.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
objectGroup()
A path or file name that defines which objects to include in the group.
|
String |
objectGroupName()
A name that allows you to refer to the object group.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MetricPolicyRule.Builder> |
serializableBuilderClass() |
MetricPolicyRule.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String objectGroup()
A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable.
public final String objectGroupName()
A name that allows you to refer to the object group.
public MetricPolicyRule.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MetricPolicyRule.Builder,MetricPolicyRule>public static MetricPolicyRule.Builder builder()
public static Class<? extends MetricPolicyRule.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.