
shiver.me.timbers.aws.config.AggregationAuthorization 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;
import shiver.me.timbers.aws.Tag;
/**
* AggregationAuthorization
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"AuthorizedAccountId",
"AuthorizedAwsRegion",
"Tags"
})
public class AggregationAuthorization {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-authorizedaccountid
*
*/
@JsonProperty("AuthorizedAccountId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-authorizedaccountid")
private CharSequence authorizedAccountId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-authorizedawsregion
*
*/
@JsonProperty("AuthorizedAwsRegion")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-authorizedawsregion")
private CharSequence authorizedAwsRegion;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-tags
*
*/
@JsonProperty("Tags")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-tags")
private List> tags = new ArrayList>();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-authorizedaccountid
*
*/
@JsonIgnore
public CharSequence getAuthorizedAccountId() {
return authorizedAccountId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-authorizedaccountid
*
*/
@JsonIgnore
public void setAuthorizedAccountId(CharSequence authorizedAccountId) {
this.authorizedAccountId = authorizedAccountId;
}
public AggregationAuthorization withAuthorizedAccountId(CharSequence authorizedAccountId) {
this.authorizedAccountId = authorizedAccountId;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-authorizedawsregion
*
*/
@JsonIgnore
public CharSequence getAuthorizedAwsRegion() {
return authorizedAwsRegion;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-authorizedawsregion
*
*/
@JsonIgnore
public void setAuthorizedAwsRegion(CharSequence authorizedAwsRegion) {
this.authorizedAwsRegion = authorizedAwsRegion;
}
public AggregationAuthorization withAuthorizedAwsRegion(CharSequence authorizedAwsRegion) {
this.authorizedAwsRegion = authorizedAwsRegion;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-tags
*
*/
@JsonIgnore
public List> getTags() {
return tags;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-aggregationauthorization.html#cfn-config-aggregationauthorization-tags
*
*/
@JsonIgnore
public void setTags(List> tags) {
this.tags = tags;
}
public AggregationAuthorization withTags(List> tags) {
this.tags = tags;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("authorizedAccountId", authorizedAccountId).append("authorizedAwsRegion", authorizedAwsRegion).append("tags", tags).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(authorizedAwsRegion).append(authorizedAccountId).append(tags).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof AggregationAuthorization) == false) {
return false;
}
AggregationAuthorization rhs = ((AggregationAuthorization) other);
return new EqualsBuilder().append(authorizedAwsRegion, rhs.authorizedAwsRegion).append(authorizedAccountId, rhs.authorizedAccountId).append(tags, rhs.tags).isEquals();
}
}