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

shiver.me.timbers.aws.ec2.NetworkInterfacePermission Maven / Gradle / Ivy


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;


/**
 * NetworkInterfacePermission
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "AwsAccountId", "NetworkInterfaceId", "Permission" }) public class NetworkInterfacePermission { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-awsaccountid * */ @JsonProperty("AwsAccountId") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-awsaccountid") private CharSequence awsAccountId; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-networkinterfaceid * */ @JsonProperty("NetworkInterfaceId") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-networkinterfaceid") private CharSequence networkInterfaceId; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-permission * */ @JsonProperty("Permission") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-permission") private CharSequence permission; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-awsaccountid * */ @JsonIgnore public CharSequence getAwsAccountId() { return awsAccountId; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-awsaccountid * */ @JsonIgnore public void setAwsAccountId(CharSequence awsAccountId) { this.awsAccountId = awsAccountId; } public NetworkInterfacePermission withAwsAccountId(CharSequence awsAccountId) { this.awsAccountId = awsAccountId; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-networkinterfaceid * */ @JsonIgnore public CharSequence getNetworkInterfaceId() { return networkInterfaceId; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-networkinterfaceid * */ @JsonIgnore public void setNetworkInterfaceId(CharSequence networkInterfaceId) { this.networkInterfaceId = networkInterfaceId; } public NetworkInterfacePermission withNetworkInterfaceId(CharSequence networkInterfaceId) { this.networkInterfaceId = networkInterfaceId; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-permission * */ @JsonIgnore public CharSequence getPermission() { return permission; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-networkinterfacepermission.html#cfn-ec2-networkinterfacepermission-permission * */ @JsonIgnore public void setPermission(CharSequence permission) { this.permission = permission; } public NetworkInterfacePermission withPermission(CharSequence permission) { this.permission = permission; return this; } @Override public String toString() { return new ToStringBuilder(this).append("awsAccountId", awsAccountId).append("networkInterfaceId", networkInterfaceId).append("permission", permission).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(networkInterfaceId).append(permission).append(awsAccountId).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof NetworkInterfacePermission) == false) { return false; } NetworkInterfacePermission rhs = ((NetworkInterfacePermission) other); return new EqualsBuilder().append(networkInterfaceId, rhs.networkInterfaceId).append(permission, rhs.permission).append(awsAccountId, rhs.awsAccountId).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy