All Downloads are FREE. Search and download functionalities are using the official Maven repository.

shiver.me.timbers.aws.gamelift.FleetIpPermission Maven / Gradle / Ivy


package shiver.me.timbers.aws.gamelift;

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;


/**
 * FleetIpPermission
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "FromPort", "IpRange", "Protocol", "ToPort" }) public class FleetIpPermission implements Property { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-fromport * */ @JsonProperty("FromPort") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-fromport") private Number fromPort; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-iprange * */ @JsonProperty("IpRange") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-iprange") private CharSequence ipRange; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-protocol * */ @JsonProperty("Protocol") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-protocol") private CharSequence protocol; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-toport * */ @JsonProperty("ToPort") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-toport") private Number toPort; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-fromport * */ @JsonIgnore public Number getFromPort() { return fromPort; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-fromport * */ @JsonIgnore public void setFromPort(Number fromPort) { this.fromPort = fromPort; } public FleetIpPermission withFromPort(Number fromPort) { this.fromPort = fromPort; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-iprange * */ @JsonIgnore public CharSequence getIpRange() { return ipRange; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-iprange * */ @JsonIgnore public void setIpRange(CharSequence ipRange) { this.ipRange = ipRange; } public FleetIpPermission withIpRange(CharSequence ipRange) { this.ipRange = ipRange; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-protocol * */ @JsonIgnore public CharSequence getProtocol() { return protocol; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-protocol * */ @JsonIgnore public void setProtocol(CharSequence protocol) { this.protocol = protocol; } public FleetIpPermission withProtocol(CharSequence protocol) { this.protocol = protocol; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-toport * */ @JsonIgnore public Number getToPort() { return toPort; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html#cfn-gamelift-fleet-ec2inboundpermissions-toport * */ @JsonIgnore public void setToPort(Number toPort) { this.toPort = toPort; } public FleetIpPermission withToPort(Number toPort) { this.toPort = toPort; return this; } @Override public String toString() { return new ToStringBuilder(this).append("fromPort", fromPort).append("ipRange", ipRange).append("protocol", protocol).append("toPort", toPort).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(ipRange).append(toPort).append(protocol).append(fromPort).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof FleetIpPermission) == false) { return false; } FleetIpPermission rhs = ((FleetIpPermission) other); return new EqualsBuilder().append(ipRange, rhs.ipRange).append(toPort, rhs.toPort).append(protocol, rhs.protocol).append(fromPort, rhs.fromPort).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy