/* * 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; /** *
* Information about the AwsOrganizationsSource
resource data sync source. A sync source of this type can
* synchronize data from Organizations or, if an Amazon Web Services organization isn't present, from multiple Amazon
* Web Services Regions.
*
* If an Amazon Web Services organization is present, this is either OrganizationalUnits
or
* EntireOrganization
. For OrganizationalUnits
, the data is aggregated from a set of
* organization units. For EntireOrganization
, the data is aggregated from the entire Amazon Web
* Services organization.
*
* The Organizations organization units included in the sync. *
*/ private com.amazonaws.internal.SdkInternalList
* If an Amazon Web Services organization is present, this is either OrganizationalUnits
or
* EntireOrganization
. For OrganizationalUnits
, the data is aggregated from a set of
* organization units. For EntireOrganization
, the data is aggregated from the entire Amazon Web
* Services organization.
*
OrganizationalUnits
or
* EntireOrganization
. For OrganizationalUnits
, the data is aggregated from a set
* of organization units. For EntireOrganization
, the data is aggregated from the entire Amazon
* Web Services organization.
*/
public void setOrganizationSourceType(String organizationSourceType) {
this.organizationSourceType = organizationSourceType;
}
/**
*
* If an Amazon Web Services organization is present, this is either OrganizationalUnits
or
* EntireOrganization
. For OrganizationalUnits
, the data is aggregated from a set of
* organization units. For EntireOrganization
, the data is aggregated from the entire Amazon Web
* Services organization.
*
OrganizationalUnits
or
* EntireOrganization
. For OrganizationalUnits
, the data is aggregated from a set
* of organization units. For EntireOrganization
, the data is aggregated from the entire Amazon
* Web Services organization.
*/
public String getOrganizationSourceType() {
return this.organizationSourceType;
}
/**
*
* If an Amazon Web Services organization is present, this is either OrganizationalUnits
or
* EntireOrganization
. For OrganizationalUnits
, the data is aggregated from a set of
* organization units. For EntireOrganization
, the data is aggregated from the entire Amazon Web
* Services organization.
*
OrganizationalUnits
or
* EntireOrganization
. For OrganizationalUnits
, the data is aggregated from a set
* of organization units. For EntireOrganization
, the data is aggregated from the entire Amazon
* Web Services organization.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResourceDataSyncAwsOrganizationsSource withOrganizationSourceType(String organizationSourceType) {
setOrganizationSourceType(organizationSourceType);
return this;
}
/**
* * The Organizations organization units included in the sync. *
* * @return The Organizations organization units included in the sync. */ public java.util.List* The Organizations organization units included in the sync. *
* * @param organizationalUnits * The Organizations organization units included in the sync. */ public void setOrganizationalUnits(java.util.Collection* The Organizations organization units included in the sync. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOrganizationalUnits(java.util.Collection)} or {@link #withOrganizationalUnits(java.util.Collection)} * if you want to override the existing values. *
* * @param organizationalUnits * The Organizations organization units included in the sync. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceDataSyncAwsOrganizationsSource withOrganizationalUnits(ResourceDataSyncOrganizationalUnit... organizationalUnits) { if (this.organizationalUnits == null) { setOrganizationalUnits(new com.amazonaws.internal.SdkInternalList* The Organizations organization units included in the sync. *
* * @param organizationalUnits * The Organizations organization units included in the sync. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceDataSyncAwsOrganizationsSource withOrganizationalUnits(java.util.Collection