
com.amazonaws.services.organizations.model.CreateOrganizationRequest Maven / Gradle / Ivy
/*
* Copyright 2012-2017 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.organizations.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 CreateOrganizationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* Specifies the feature set supported by the new organization. Each feature set supports different levels of
* functionality.
*
*
* -
*
* CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the master account.
* For more information, see Consolidated Billing in the AWS Organizations User Guide.
*
*
* -
*
* ALL: In addition to all the features supported by the consolidated billing feature set, the master account
* can also apply any type of policy to any member account in the organization. For more information, see All features in the AWS Organizations User Guide.
*
*
*
*/
private String featureSet;
/**
*
* Specifies the feature set supported by the new organization. Each feature set supports different levels of
* functionality.
*
*
* -
*
* CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the master account.
* For more information, see Consolidated Billing in the AWS Organizations User Guide.
*
*
* -
*
* ALL: In addition to all the features supported by the consolidated billing feature set, the master account
* can also apply any type of policy to any member account in the organization. For more information, see All features in the AWS Organizations User Guide.
*
*
*
*
* @param featureSet
* Specifies the feature set supported by the new organization. Each feature set supports different levels of
* functionality.
*
* -
*
* CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the master
* account. For more information, see Consolidated Billing in the AWS Organizations User Guide.
*
*
* -
*
* ALL: In addition to all the features supported by the consolidated billing feature set, the master
* account can also apply any type of policy to any member account in the organization. For more information,
* see All features in the AWS Organizations User Guide.
*
*
* @see OrganizationFeatureSet
*/
public void setFeatureSet(String featureSet) {
this.featureSet = featureSet;
}
/**
*
* Specifies the feature set supported by the new organization. Each feature set supports different levels of
* functionality.
*
*
* -
*
* CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the master account.
* For more information, see Consolidated Billing in the AWS Organizations User Guide.
*
*
* -
*
* ALL: In addition to all the features supported by the consolidated billing feature set, the master account
* can also apply any type of policy to any member account in the organization. For more information, see All features in the AWS Organizations User Guide.
*
*
*
*
* @return Specifies the feature set supported by the new organization. Each feature set supports different levels
* of functionality.
*
* -
*
* CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the master
* account. For more information, see Consolidated Billing in the AWS Organizations User Guide.
*
*
* -
*
* ALL: In addition to all the features supported by the consolidated billing feature set, the master
* account can also apply any type of policy to any member account in the organization. For more
* information, see All features in the AWS Organizations User Guide.
*
*
* @see OrganizationFeatureSet
*/
public String getFeatureSet() {
return this.featureSet;
}
/**
*
* Specifies the feature set supported by the new organization. Each feature set supports different levels of
* functionality.
*
*
* -
*
* CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the master account.
* For more information, see Consolidated Billing in the AWS Organizations User Guide.
*
*
* -
*
* ALL: In addition to all the features supported by the consolidated billing feature set, the master account
* can also apply any type of policy to any member account in the organization. For more information, see All features in the AWS Organizations User Guide.
*
*
*
*
* @param featureSet
* Specifies the feature set supported by the new organization. Each feature set supports different levels of
* functionality.
*
* -
*
* CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the master
* account. For more information, see Consolidated Billing in the AWS Organizations User Guide.
*
*
* -
*
* ALL: In addition to all the features supported by the consolidated billing feature set, the master
* account can also apply any type of policy to any member account in the organization. For more information,
* see All features in the AWS Organizations User Guide.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see OrganizationFeatureSet
*/
public CreateOrganizationRequest withFeatureSet(String featureSet) {
setFeatureSet(featureSet);
return this;
}
/**
*
* Specifies the feature set supported by the new organization. Each feature set supports different levels of
* functionality.
*
*
* -
*
* CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the master account.
* For more information, see Consolidated Billing in the AWS Organizations User Guide.
*
*
* -
*
* ALL: In addition to all the features supported by the consolidated billing feature set, the master account
* can also apply any type of policy to any member account in the organization. For more information, see All features in the AWS Organizations User Guide.
*
*
*
*
* @param featureSet
* Specifies the feature set supported by the new organization. Each feature set supports different levels of
* functionality.
*
* -
*
* CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the master
* account. For more information, see Consolidated Billing in the AWS Organizations User Guide.
*
*
* -
*
* ALL: In addition to all the features supported by the consolidated billing feature set, the master
* account can also apply any type of policy to any member account in the organization. For more information,
* see All features in the AWS Organizations User Guide.
*
*
* @see OrganizationFeatureSet
*/
public void setFeatureSet(OrganizationFeatureSet featureSet) {
withFeatureSet(featureSet);
}
/**
*
* Specifies the feature set supported by the new organization. Each feature set supports different levels of
* functionality.
*
*
* -
*
* CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the master account.
* For more information, see Consolidated Billing in the AWS Organizations User Guide.
*
*
* -
*
* ALL: In addition to all the features supported by the consolidated billing feature set, the master account
* can also apply any type of policy to any member account in the organization. For more information, see All features in the AWS Organizations User Guide.
*
*
*
*
* @param featureSet
* Specifies the feature set supported by the new organization. Each feature set supports different levels of
* functionality.
*
* -
*
* CONSOLIDATED_BILLING: All member accounts have their bills consolidated to and paid by the master
* account. For more information, see Consolidated Billing in the AWS Organizations User Guide.
*
*
* -
*
* ALL: In addition to all the features supported by the consolidated billing feature set, the master
* account can also apply any type of policy to any member account in the organization. For more information,
* see All features in the AWS Organizations User Guide.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see OrganizationFeatureSet
*/
public CreateOrganizationRequest withFeatureSet(OrganizationFeatureSet featureSet) {
this.featureSet = featureSet.toString();
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getFeatureSet() != null)
sb.append("FeatureSet: ").append(getFeatureSet());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateOrganizationRequest == false)
return false;
CreateOrganizationRequest other = (CreateOrganizationRequest) obj;
if (other.getFeatureSet() == null ^ this.getFeatureSet() == null)
return false;
if (other.getFeatureSet() != null && other.getFeatureSet().equals(this.getFeatureSet()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFeatureSet() == null) ? 0 : getFeatureSet().hashCode());
return hashCode;
}
@Override
public CreateOrganizationRequest clone() {
return (CreateOrganizationRequest) super.clone();
}
}