All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.mediastore.model.MetricPolicyRule Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Elemental MediaStore module holds the client classes that are used for communicating with AWS Elemental MediaStore Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.mediastore.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* 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 AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MetricPolicyRule implements Serializable, Cloneable, StructuredPojo { /** *

* A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable. *

*/ private String objectGroup; /** *

* A name that allows you to refer to the object group. *

*/ private String objectGroupName; /** *

* A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable. *

* * @param objectGroup * A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable. */ public void setObjectGroup(String objectGroup) { this.objectGroup = objectGroup; } /** *

* A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable. *

* * @return A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable. */ public String getObjectGroup() { return this.objectGroup; } /** *

* A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable. *

* * @param objectGroup * A path or file name that defines which objects to include in the group. Wildcards (*) are acceptable. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricPolicyRule withObjectGroup(String objectGroup) { setObjectGroup(objectGroup); return this; } /** *

* A name that allows you to refer to the object group. *

* * @param objectGroupName * A name that allows you to refer to the object group. */ public void setObjectGroupName(String objectGroupName) { this.objectGroupName = objectGroupName; } /** *

* A name that allows you to refer to the object group. *

* * @return A name that allows you to refer to the object group. */ public String getObjectGroupName() { return this.objectGroupName; } /** *

* A name that allows you to refer to the object group. *

* * @param objectGroupName * A name that allows you to refer to the object group. * @return Returns a reference to this object so that method calls can be chained together. */ public MetricPolicyRule withObjectGroupName(String objectGroupName) { setObjectGroupName(objectGroupName); return this; } /** * 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. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getObjectGroup() != null) sb.append("ObjectGroup: ").append(getObjectGroup()).append(","); if (getObjectGroupName() != null) sb.append("ObjectGroupName: ").append(getObjectGroupName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof MetricPolicyRule == false) return false; MetricPolicyRule other = (MetricPolicyRule) obj; if (other.getObjectGroup() == null ^ this.getObjectGroup() == null) return false; if (other.getObjectGroup() != null && other.getObjectGroup().equals(this.getObjectGroup()) == false) return false; if (other.getObjectGroupName() == null ^ this.getObjectGroupName() == null) return false; if (other.getObjectGroupName() != null && other.getObjectGroupName().equals(this.getObjectGroupName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getObjectGroup() == null) ? 0 : getObjectGroup().hashCode()); hashCode = prime * hashCode + ((getObjectGroupName() == null) ? 0 : getObjectGroupName().hashCode()); return hashCode; } @Override public MetricPolicyRule clone() { try { return (MetricPolicyRule) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.mediastore.model.transform.MetricPolicyRuleMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy