
shiver.me.timbers.aws.ec2.VPNGatewayRoutePropagation Maven / Gradle / Ivy
package shiver.me.timbers.aws.ec2;
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;
/**
* VPNGatewayRoutePropagation
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"RouteTableIds",
"VpnGatewayId"
})
public class VPNGatewayRoutePropagation {
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-routetableids
*
*/
@JsonProperty("RouteTableIds")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-routetableids")
private List routeTableIds = new ArrayList();
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-vpngatewayid
*
*/
@JsonProperty("VpnGatewayId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-vpngatewayid")
private CharSequence vpnGatewayId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-routetableids
*
*/
@JsonIgnore
public List getRouteTableIds() {
return routeTableIds;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-routetableids
*
*/
@JsonIgnore
public void setRouteTableIds(List routeTableIds) {
this.routeTableIds = routeTableIds;
}
public VPNGatewayRoutePropagation withRouteTableIds(List routeTableIds) {
this.routeTableIds = routeTableIds;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-vpngatewayid
*
*/
@JsonIgnore
public CharSequence getVpnGatewayId() {
return vpnGatewayId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-vpngatewayid
*
*/
@JsonIgnore
public void setVpnGatewayId(CharSequence vpnGatewayId) {
this.vpnGatewayId = vpnGatewayId;
}
public VPNGatewayRoutePropagation withVpnGatewayId(CharSequence vpnGatewayId) {
this.vpnGatewayId = vpnGatewayId;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("routeTableIds", routeTableIds).append("vpnGatewayId", vpnGatewayId).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(routeTableIds).append(vpnGatewayId).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof VPNGatewayRoutePropagation) == false) {
return false;
}
VPNGatewayRoutePropagation rhs = ((VPNGatewayRoutePropagation) other);
return new EqualsBuilder().append(routeTableIds, rhs.routeTableIds).append(vpnGatewayId, rhs.vpnGatewayId).isEquals();
}
}