/* * 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.simplesystemsmanagement.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* One or more aggregators for viewing counts of OpsData using different dimensions such as Source
,
* CreatedTime
, or Source and CreatedTime
, to name a few.
*
* Either a Range
or Count
aggregator for limiting an OpsData summary.
*
* The data type name to use for viewing counts of OpsData. *
*/ private String typeName; /** ** The name of an OpsData attribute on which to limit the count of OpsData. *
*/ private String attributeName; /** ** The aggregator value. *
*/ private java.util.Map* The aggregator filters. *
*/ private com.amazonaws.internal.SdkInternalList* A nested aggregator for viewing counts of OpsData. *
*/ private com.amazonaws.internal.SdkInternalList
* Either a Range
or Count
aggregator for limiting an OpsData summary.
*
Range
or Count
aggregator for limiting an OpsData summary.
*/
public void setAggregatorType(String aggregatorType) {
this.aggregatorType = aggregatorType;
}
/**
*
* Either a Range
or Count
aggregator for limiting an OpsData summary.
*
Range
or Count
aggregator for limiting an OpsData summary.
*/
public String getAggregatorType() {
return this.aggregatorType;
}
/**
*
* Either a Range
or Count
aggregator for limiting an OpsData summary.
*
Range
or Count
aggregator for limiting an OpsData summary.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OpsAggregator withAggregatorType(String aggregatorType) {
setAggregatorType(aggregatorType);
return this;
}
/**
* * The data type name to use for viewing counts of OpsData. *
* * @param typeName * The data type name to use for viewing counts of OpsData. */ public void setTypeName(String typeName) { this.typeName = typeName; } /** ** The data type name to use for viewing counts of OpsData. *
* * @return The data type name to use for viewing counts of OpsData. */ public String getTypeName() { return this.typeName; } /** ** The data type name to use for viewing counts of OpsData. *
* * @param typeName * The data type name to use for viewing counts of OpsData. * @return Returns a reference to this object so that method calls can be chained together. */ public OpsAggregator withTypeName(String typeName) { setTypeName(typeName); return this; } /** ** The name of an OpsData attribute on which to limit the count of OpsData. *
* * @param attributeName * The name of an OpsData attribute on which to limit the count of OpsData. */ public void setAttributeName(String attributeName) { this.attributeName = attributeName; } /** ** The name of an OpsData attribute on which to limit the count of OpsData. *
* * @return The name of an OpsData attribute on which to limit the count of OpsData. */ public String getAttributeName() { return this.attributeName; } /** ** The name of an OpsData attribute on which to limit the count of OpsData. *
* * @param attributeName * The name of an OpsData attribute on which to limit the count of OpsData. * @return Returns a reference to this object so that method calls can be chained together. */ public OpsAggregator withAttributeName(String attributeName) { setAttributeName(attributeName); return this; } /** ** The aggregator value. *
* * @return The aggregator value. */ public java.util.Map* The aggregator value. *
* * @param values * The aggregator value. */ public void setValues(java.util.Map* The aggregator value. *
* * @param values * The aggregator value. * @return Returns a reference to this object so that method calls can be chained together. */ public OpsAggregator withValues(java.util.Map* The aggregator filters. *
* * @return The aggregator filters. */ public java.util.List* The aggregator filters. *
* * @param filters * The aggregator filters. */ public void setFilters(java.util.Collection* The aggregator filters. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFilters(java.util.Collection)} or {@link #withFilters(java.util.Collection)} if you want to override * the existing values. *
* * @param filters * The aggregator filters. * @return Returns a reference to this object so that method calls can be chained together. */ public OpsAggregator withFilters(OpsFilter... filters) { if (this.filters == null) { setFilters(new com.amazonaws.internal.SdkInternalList* The aggregator filters. *
* * @param filters * The aggregator filters. * @return Returns a reference to this object so that method calls can be chained together. */ public OpsAggregator withFilters(java.util.Collection* A nested aggregator for viewing counts of OpsData. *
* * @return A nested aggregator for viewing counts of OpsData. */ public java.util.List* A nested aggregator for viewing counts of OpsData. *
* * @param aggregators * A nested aggregator for viewing counts of OpsData. */ public void setAggregators(java.util.Collection* A nested aggregator for viewing counts of OpsData. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAggregators(java.util.Collection)} or {@link #withAggregators(java.util.Collection)} if you want to * override the existing values. *
* * @param aggregators * A nested aggregator for viewing counts of OpsData. * @return Returns a reference to this object so that method calls can be chained together. */ public OpsAggregator withAggregators(OpsAggregator... aggregators) { if (this.aggregators == null) { setAggregators(new com.amazonaws.internal.SdkInternalList* A nested aggregator for viewing counts of OpsData. *
* * @param aggregators * A nested aggregator for viewing counts of OpsData. * @return Returns a reference to this object so that method calls can be chained together. */ public OpsAggregator withAggregators(java.util.Collection