/* * Copyright 2018-2023 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.simpleemailv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Represents a single metric data query to include in a batch. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BatchGetMetricDataQuery implements Serializable, Cloneable, StructuredPojo { /** *

* The query identifier. *

*/ private String id; /** *

* The query namespace - e.g. VDM *

*/ private String namespace; /** *

* The queried metric. This can be one of the following: *

* */ private String metric; /** *

* An object that contains mapping between MetricDimensionName and MetricDimensionValue to * filter metrics by. *

*/ private java.util.Map dimensions; /** *

* Represents the start date for the query interval. *

*/ private java.util.Date startDate; /** *

* Represents the end date for the query interval. *

*/ private java.util.Date endDate; /** *

* The query identifier. *

* * @param id * The query identifier. */ public void setId(String id) { this.id = id; } /** *

* The query identifier. *

* * @return The query identifier. */ public String getId() { return this.id; } /** *

* The query identifier. *

* * @param id * The query identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public BatchGetMetricDataQuery withId(String id) { setId(id); return this; } /** *

* The query namespace - e.g. VDM *

* * @param namespace * The query namespace - e.g. VDM * @see MetricNamespace */ public void setNamespace(String namespace) { this.namespace = namespace; } /** *

* The query namespace - e.g. VDM *

* * @return The query namespace - e.g. VDM * @see MetricNamespace */ public String getNamespace() { return this.namespace; } /** *

* The query namespace - e.g. VDM *

* * @param namespace * The query namespace - e.g. VDM * @return Returns a reference to this object so that method calls can be chained together. * @see MetricNamespace */ public BatchGetMetricDataQuery withNamespace(String namespace) { setNamespace(namespace); return this; } /** *

* The query namespace - e.g. VDM *

* * @param namespace * The query namespace - e.g. VDM * @return Returns a reference to this object so that method calls can be chained together. * @see MetricNamespace */ public BatchGetMetricDataQuery withNamespace(MetricNamespace namespace) { this.namespace = namespace.toString(); return this; } /** *

* The queried metric. This can be one of the following: *

* * * @param metric * The queried metric. This can be one of the following:

*