/* * 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.pi.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* An object that includes the requested dimension key values and aggregated metric values within a dimension group. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DimensionKeyDescription implements Serializable, Cloneable, StructuredPojo { /** ** A map of name-value pairs for the dimensions in the group. *
*/ private java.util.Map* The aggregated metric value for the dimensions, over the requested time range. *
*/ private Double total; /** ** A map that contains the value for each additional metric. *
*/ private java.util.Map
* If PartitionBy
was specified, PartitionKeys
contains the dimensions that were.
*
* A map of name-value pairs for the dimensions in the group. *
* * @return A map of name-value pairs for the dimensions in the group. */ public java.util.Map* A map of name-value pairs for the dimensions in the group. *
* * @param dimensions * A map of name-value pairs for the dimensions in the group. */ public void setDimensions(java.util.Map* A map of name-value pairs for the dimensions in the group. *
* * @param dimensions * A map of name-value pairs for the dimensions in the group. * @return Returns a reference to this object so that method calls can be chained together. */ public DimensionKeyDescription withDimensions(java.util.Map* The aggregated metric value for the dimensions, over the requested time range. *
* * @param total * The aggregated metric value for the dimensions, over the requested time range. */ public void setTotal(Double total) { this.total = total; } /** ** The aggregated metric value for the dimensions, over the requested time range. *
* * @return The aggregated metric value for the dimensions, over the requested time range. */ public Double getTotal() { return this.total; } /** ** The aggregated metric value for the dimensions, over the requested time range. *
* * @param total * The aggregated metric value for the dimensions, over the requested time range. * @return Returns a reference to this object so that method calls can be chained together. */ public DimensionKeyDescription withTotal(Double total) { setTotal(total); return this; } /** ** A map that contains the value for each additional metric. *
* * @return A map that contains the value for each additional metric. */ public java.util.Map* A map that contains the value for each additional metric. *
* * @param additionalMetrics * A map that contains the value for each additional metric. */ public void setAdditionalMetrics(java.util.Map* A map that contains the value for each additional metric. *
* * @param additionalMetrics * A map that contains the value for each additional metric. * @return Returns a reference to this object so that method calls can be chained together. */ public DimensionKeyDescription withAdditionalMetrics(java.util.Map
* If PartitionBy
was specified, PartitionKeys
contains the dimensions that were.
*
PartitionBy
was specified, PartitionKeys
contains the dimensions that were.
*/
public java.util.List
* If PartitionBy
was specified, PartitionKeys
contains the dimensions that were.
*
PartitionBy
was specified, PartitionKeys
contains the dimensions that were.
*/
public void setPartitions(java.util.Collection
* If PartitionBy
was specified, PartitionKeys
contains the dimensions that were.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setPartitions(java.util.Collection)} or {@link #withPartitions(java.util.Collection)} if you want to * override the existing values. *
* * @param partitions * IfPartitionBy
was specified, PartitionKeys
contains the dimensions that were.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DimensionKeyDescription withPartitions(Double... partitions) {
if (this.partitions == null) {
setPartitions(new java.util.ArrayList
* If PartitionBy
was specified, PartitionKeys
contains the dimensions that were.
*
PartitionBy
was specified, PartitionKeys
contains the dimensions that were.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DimensionKeyDescription withPartitions(java.util.Collection