shiver.me.timbers.aws.config.ConfigurationAggregatorOrganizationAggregationSource Maven / Gradle / Ivy
package shiver.me.timbers.aws.config;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import shiver.me.timbers.aws.Property;
/**
* ConfigurationAggregatorOrganizationAggregationSource
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"AllAwsRegions",
"AwsRegions",
"RoleArn"
})
public class ConfigurationAggregatorOrganizationAggregationSource implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-allawsregions
*
*/
@JsonProperty("AllAwsRegions")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-allawsregions")
private CharSequence allAwsRegions;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-awsregions
*
*/
@JsonProperty("AwsRegions")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-awsregions")
private List awsRegions = new ArrayList();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-rolearn
*
*/
@JsonProperty("RoleArn")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-rolearn")
private CharSequence roleArn;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-allawsregions
*
*/
@JsonIgnore
public CharSequence getAllAwsRegions() {
return allAwsRegions;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-allawsregions
*
*/
@JsonIgnore
public void setAllAwsRegions(CharSequence allAwsRegions) {
this.allAwsRegions = allAwsRegions;
}
public ConfigurationAggregatorOrganizationAggregationSource withAllAwsRegions(CharSequence allAwsRegions) {
this.allAwsRegions = allAwsRegions;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-awsregions
*
*/
@JsonIgnore
public List getAwsRegions() {
return awsRegions;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-awsregions
*
*/
@JsonIgnore
public void setAwsRegions(List awsRegions) {
this.awsRegions = awsRegions;
}
public ConfigurationAggregatorOrganizationAggregationSource withAwsRegions(List awsRegions) {
this.awsRegions = awsRegions;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-rolearn
*
*/
@JsonIgnore
public CharSequence getRoleArn() {
return roleArn;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-configurationaggregator-organizationaggregationsource.html#cfn-config-configurationaggregator-organizationaggregationsource-rolearn
*
*/
@JsonIgnore
public void setRoleArn(CharSequence roleArn) {
this.roleArn = roleArn;
}
public ConfigurationAggregatorOrganizationAggregationSource withRoleArn(CharSequence roleArn) {
this.roleArn = roleArn;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("allAwsRegions", allAwsRegions).append("awsRegions", awsRegions).append("roleArn", roleArn).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(awsRegions).append(roleArn).append(allAwsRegions).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof ConfigurationAggregatorOrganizationAggregationSource) == false) {
return false;
}
ConfigurationAggregatorOrganizationAggregationSource rhs = ((ConfigurationAggregatorOrganizationAggregationSource) other);
return new EqualsBuilder().append(awsRegions, rhs.awsRegions).append(roleArn, rhs.roleArn).append(allAwsRegions, rhs.allAwsRegions).isEquals();
}
}