shiver.me.timbers.aws.rds.DBSecurityGroupIngress Maven / Gradle / Ivy
package shiver.me.timbers.aws.rds;
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;
/**
* DBSecurityGroupIngress
*
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html
*
*/
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonPropertyOrder({
"CIDRIP",
"EC2SecurityGroupId",
"EC2SecurityGroupName",
"EC2SecurityGroupOwnerId"
})
public class DBSecurityGroupIngress implements Property
{
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-cidrip
*
*/
@JsonProperty("CIDRIP")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-cidrip")
private CharSequence cIDRIP;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupid
*
*/
@JsonProperty("EC2SecurityGroupId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupid")
private CharSequence eC2SecurityGroupId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupname
*
*/
@JsonProperty("EC2SecurityGroupName")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupname")
private CharSequence eC2SecurityGroupName;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupownerid
*
*/
@JsonProperty("EC2SecurityGroupOwnerId")
@JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupownerid")
private CharSequence eC2SecurityGroupOwnerId;
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-cidrip
*
*/
@JsonIgnore
public CharSequence getCIDRIP() {
return cIDRIP;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-cidrip
*
*/
@JsonIgnore
public void setCIDRIP(CharSequence cIDRIP) {
this.cIDRIP = cIDRIP;
}
public DBSecurityGroupIngress withCIDRIP(CharSequence cIDRIP) {
this.cIDRIP = cIDRIP;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupid
*
*/
@JsonIgnore
public CharSequence getEC2SecurityGroupId() {
return eC2SecurityGroupId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupid
*
*/
@JsonIgnore
public void setEC2SecurityGroupId(CharSequence eC2SecurityGroupId) {
this.eC2SecurityGroupId = eC2SecurityGroupId;
}
public DBSecurityGroupIngress withEC2SecurityGroupId(CharSequence eC2SecurityGroupId) {
this.eC2SecurityGroupId = eC2SecurityGroupId;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupname
*
*/
@JsonIgnore
public CharSequence getEC2SecurityGroupName() {
return eC2SecurityGroupName;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupname
*
*/
@JsonIgnore
public void setEC2SecurityGroupName(CharSequence eC2SecurityGroupName) {
this.eC2SecurityGroupName = eC2SecurityGroupName;
}
public DBSecurityGroupIngress withEC2SecurityGroupName(CharSequence eC2SecurityGroupName) {
this.eC2SecurityGroupName = eC2SecurityGroupName;
return this;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupownerid
*
*/
@JsonIgnore
public CharSequence getEC2SecurityGroupOwnerId() {
return eC2SecurityGroupOwnerId;
}
/**
* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rds-security-group-rule.html#cfn-rds-securitygroup-ec2securitygroupownerid
*
*/
@JsonIgnore
public void setEC2SecurityGroupOwnerId(CharSequence eC2SecurityGroupOwnerId) {
this.eC2SecurityGroupOwnerId = eC2SecurityGroupOwnerId;
}
public DBSecurityGroupIngress withEC2SecurityGroupOwnerId(CharSequence eC2SecurityGroupOwnerId) {
this.eC2SecurityGroupOwnerId = eC2SecurityGroupOwnerId;
return this;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("cIDRIP", cIDRIP).append("eC2SecurityGroupId", eC2SecurityGroupId).append("eC2SecurityGroupName", eC2SecurityGroupName).append("eC2SecurityGroupOwnerId", eC2SecurityGroupOwnerId).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(eC2SecurityGroupId).append(eC2SecurityGroupOwnerId).append(eC2SecurityGroupName).append(cIDRIP).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DBSecurityGroupIngress) == false) {
return false;
}
DBSecurityGroupIngress rhs = ((DBSecurityGroupIngress) other);
return new EqualsBuilder().append(eC2SecurityGroupId, rhs.eC2SecurityGroupId).append(eC2SecurityGroupOwnerId, rhs.eC2SecurityGroupOwnerId).append(eC2SecurityGroupName, rhs.eC2SecurityGroupName).append(cIDRIP, rhs.cIDRIP).isEquals();
}
}