@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricPolicyRule extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
MetricPolicyRule() |
Modifier and Type | Method and Description |
---|---|
MetricPolicyRule |
clone() |
boolean |
equals(Object obj) |
String |
getObjectGroup()
A path or file name that defines which objects to include in the group.
|
String |
getObjectGroupName()
A name that allows you to refer to the object group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setObjectGroup(String objectGroup)
A path or file name that defines which objects to include in the group.
|
void |
setObjectGroupName(String objectGroupName)
A name that allows you to refer to the object group.
|
String |
toString()
Returns a string representation of this object.
|
MetricPolicyRule |
withObjectGroup(String objectGroup)
A path or file name that defines which objects to include in the group.
|
MetricPolicyRule |
withObjectGroupName(String objectGroupName)
A name that allows you to refer to the object group.
|
public void setObjectGroup(String objectGroup)
A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable.
objectGroup
- A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable.public String getObjectGroup()
A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable.
public MetricPolicyRule withObjectGroup(String objectGroup)
A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable.
objectGroup
- A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable.public void setObjectGroupName(String objectGroupName)
A name that allows you to refer to the object group.
objectGroupName
- A name that allows you to refer to the object group.public String getObjectGroupName()
A name that allows you to refer to the object group.
public MetricPolicyRule withObjectGroupName(String objectGroupName)
A name that allows you to refer to the object group.
objectGroupName
- A name that allows you to refer to the object group.public String toString()
toString
in class Object
Object.toString()
public MetricPolicyRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.