shiver.me.timbers.aws.ec2.TransitGatewayRouteTableAssociation Maven / Gradle / Ivy
Show all versions of smt-cloudformation-objects Show documentation
package shiver.me.timbers.aws.ec2;
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;
/**
* TransitGatewayRouteTableAssociation
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"TransitGatewayRouteTableId",
"TransitGatewayAttachmentId"
})
public class TransitGatewayRouteTableAssociation {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html#cfn-ec2-transitgatewayroutetableassociation-transitgatewayroutetableid
*
*/
@JsonProperty("TransitGatewayRouteTableId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html#cfn-ec2-transitgatewayroutetableassociation-transitgatewayroutetableid")
private CharSequence transitGatewayRouteTableId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html#cfn-ec2-transitgatewayroutetableassociation-transitgatewayattachmentid
*
*/
@JsonProperty("TransitGatewayAttachmentId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html#cfn-ec2-transitgatewayroutetableassociation-transitgatewayattachmentid")
private CharSequence transitGatewayAttachmentId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html#cfn-ec2-transitgatewayroutetableassociation-transitgatewayroutetableid
*
*/
@JsonIgnore
public CharSequence getTransitGatewayRouteTableId() {
return transitGatewayRouteTableId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html#cfn-ec2-transitgatewayroutetableassociation-transitgatewayroutetableid
*
*/
@JsonIgnore
public void setTransitGatewayRouteTableId(CharSequence transitGatewayRouteTableId) {
this.transitGatewayRouteTableId = transitGatewayRouteTableId;
}
public TransitGatewayRouteTableAssociation withTransitGatewayRouteTableId(CharSequence transitGatewayRouteTableId) {
this.transitGatewayRouteTableId = transitGatewayRouteTableId;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html#cfn-ec2-transitgatewayroutetableassociation-transitgatewayattachmentid
*
*/
@JsonIgnore
public CharSequence getTransitGatewayAttachmentId() {
return transitGatewayAttachmentId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgatewayroutetableassociation.html#cfn-ec2-transitgatewayroutetableassociation-transitgatewayattachmentid
*
*/
@JsonIgnore
public void setTransitGatewayAttachmentId(CharSequence transitGatewayAttachmentId) {
this.transitGatewayAttachmentId = transitGatewayAttachmentId;
}
public TransitGatewayRouteTableAssociation withTransitGatewayAttachmentId(CharSequence transitGatewayAttachmentId) {
this.transitGatewayAttachmentId = transitGatewayAttachmentId;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("transitGatewayRouteTableId", transitGatewayRouteTableId).append("transitGatewayAttachmentId", transitGatewayAttachmentId).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(transitGatewayRouteTableId).append(transitGatewayAttachmentId).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof TransitGatewayRouteTableAssociation) == false) {
return false;
}
TransitGatewayRouteTableAssociation rhs = ((TransitGatewayRouteTableAssociation) other);
return new EqualsBuilder().append(transitGatewayRouteTableId, rhs.transitGatewayRouteTableId).append(transitGatewayAttachmentId, rhs.transitGatewayAttachmentId).isEquals();
}
}