/* * 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.config.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PutConfigurationAggregatorRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the configuration aggregator. *
*/ private String configurationAggregatorName; /** ** A list of AccountAggregationSource object. *
*/ private com.amazonaws.internal.SdkInternalList* An OrganizationAggregationSource object. *
*/ private OrganizationAggregationSource organizationAggregationSource; /** ** An array of tag object. *
*/ private com.amazonaws.internal.SdkInternalList* The name of the configuration aggregator. *
* * @param configurationAggregatorName * The name of the configuration aggregator. */ public void setConfigurationAggregatorName(String configurationAggregatorName) { this.configurationAggregatorName = configurationAggregatorName; } /** ** The name of the configuration aggregator. *
* * @return The name of the configuration aggregator. */ public String getConfigurationAggregatorName() { return this.configurationAggregatorName; } /** ** The name of the configuration aggregator. *
* * @param configurationAggregatorName * The name of the configuration aggregator. * @return Returns a reference to this object so that method calls can be chained together. */ public PutConfigurationAggregatorRequest withConfigurationAggregatorName(String configurationAggregatorName) { setConfigurationAggregatorName(configurationAggregatorName); return this; } /** ** A list of AccountAggregationSource object. *
* * @return A list of AccountAggregationSource object. */ public java.util.List* A list of AccountAggregationSource object. *
* * @param accountAggregationSources * A list of AccountAggregationSource object. */ public void setAccountAggregationSources(java.util.Collection* A list of AccountAggregationSource object. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAccountAggregationSources(java.util.Collection)} or * {@link #withAccountAggregationSources(java.util.Collection)} if you want to override the existing values. *
* * @param accountAggregationSources * A list of AccountAggregationSource object. * @return Returns a reference to this object so that method calls can be chained together. */ public PutConfigurationAggregatorRequest withAccountAggregationSources(AccountAggregationSource... accountAggregationSources) { if (this.accountAggregationSources == null) { setAccountAggregationSources(new com.amazonaws.internal.SdkInternalList* A list of AccountAggregationSource object. *
* * @param accountAggregationSources * A list of AccountAggregationSource object. * @return Returns a reference to this object so that method calls can be chained together. */ public PutConfigurationAggregatorRequest withAccountAggregationSources(java.util.Collection* An OrganizationAggregationSource object. *
* * @param organizationAggregationSource * An OrganizationAggregationSource object. */ public void setOrganizationAggregationSource(OrganizationAggregationSource organizationAggregationSource) { this.organizationAggregationSource = organizationAggregationSource; } /** ** An OrganizationAggregationSource object. *
* * @return An OrganizationAggregationSource object. */ public OrganizationAggregationSource getOrganizationAggregationSource() { return this.organizationAggregationSource; } /** ** An OrganizationAggregationSource object. *
* * @param organizationAggregationSource * An OrganizationAggregationSource object. * @return Returns a reference to this object so that method calls can be chained together. */ public PutConfigurationAggregatorRequest withOrganizationAggregationSource(OrganizationAggregationSource organizationAggregationSource) { setOrganizationAggregationSource(organizationAggregationSource); return this; } /** ** An array of tag object. *
* * @return An array of tag object. */ public java.util.List* An array of tag object. *
* * @param tags * An array of tag object. */ public void setTags(java.util.Collection* An array of tag object. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * An array of tag object. * @return Returns a reference to this object so that method calls can be chained together. */ public PutConfigurationAggregatorRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* An array of tag object. *
* * @param tags * An array of tag object. * @return Returns a reference to this object so that method calls can be chained together. */ public PutConfigurationAggregatorRequest withTags(java.util.Collection