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

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


package shiver.me.timbers.aws.ec2;

import java.util.LinkedHashSet;
import java.util.Set;
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 com.fasterxml.jackson.databind.annotation.JsonDeserialize;
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;
import shiver.me.timbers.aws.iam.PolicyDocument;


/**
 * VPCEndpoint
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "PolicyDocument", "PrivateDnsEnabled", "RouteTableIds", "SecurityGroupIds", "ServiceName", "SubnetIds", "VpcEndpointType", "VpcId" }) public class VPCEndpoint { /** * Resource *

* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html * */ @JsonProperty("PolicyDocument") @JsonPropertyDescription("https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html") private Property policyDocument; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-privatednsenabled * */ @JsonProperty("PrivateDnsEnabled") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-privatednsenabled") private CharSequence privateDnsEnabled; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-routetableids * */ @JsonProperty("RouteTableIds") @JsonDeserialize(as = java.util.LinkedHashSet.class) @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-routetableids") private Set routeTableIds = new LinkedHashSet(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-securitygroupids * */ @JsonProperty("SecurityGroupIds") @JsonDeserialize(as = java.util.LinkedHashSet.class) @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-securitygroupids") private Set securityGroupIds = new LinkedHashSet(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-servicename * */ @JsonProperty("ServiceName") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-servicename") private CharSequence serviceName; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-subnetids * */ @JsonProperty("SubnetIds") @JsonDeserialize(as = java.util.LinkedHashSet.class) @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-subnetids") private Set subnetIds = new LinkedHashSet(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcendpointtype * */ @JsonProperty("VpcEndpointType") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcendpointtype") private CharSequence vpcEndpointType; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcid * */ @JsonProperty("VpcId") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcid") private CharSequence vpcId; /** * Resource *

* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html * */ @JsonIgnore public Property getPolicyDocument() { return policyDocument; } /** * Resource *

* https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements.html * */ @JsonIgnore public void setPolicyDocument(Property policyDocument) { this.policyDocument = policyDocument; } public VPCEndpoint withPolicyDocument(Property policyDocument) { this.policyDocument = policyDocument; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-privatednsenabled * */ @JsonIgnore public CharSequence getPrivateDnsEnabled() { return privateDnsEnabled; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-privatednsenabled * */ @JsonIgnore public void setPrivateDnsEnabled(CharSequence privateDnsEnabled) { this.privateDnsEnabled = privateDnsEnabled; } public VPCEndpoint withPrivateDnsEnabled(CharSequence privateDnsEnabled) { this.privateDnsEnabled = privateDnsEnabled; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-routetableids * */ @JsonIgnore public Set getRouteTableIds() { return routeTableIds; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-routetableids * */ @JsonIgnore public void setRouteTableIds(Set routeTableIds) { this.routeTableIds = routeTableIds; } public VPCEndpoint withRouteTableIds(Set routeTableIds) { this.routeTableIds = routeTableIds; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-securitygroupids * */ @JsonIgnore public Set getSecurityGroupIds() { return securityGroupIds; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-securitygroupids * */ @JsonIgnore public void setSecurityGroupIds(Set securityGroupIds) { this.securityGroupIds = securityGroupIds; } public VPCEndpoint withSecurityGroupIds(Set securityGroupIds) { this.securityGroupIds = securityGroupIds; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-servicename * */ @JsonIgnore public CharSequence getServiceName() { return serviceName; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-servicename * */ @JsonIgnore public void setServiceName(CharSequence serviceName) { this.serviceName = serviceName; } public VPCEndpoint withServiceName(CharSequence serviceName) { this.serviceName = serviceName; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-subnetids * */ @JsonIgnore public Set getSubnetIds() { return subnetIds; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-subnetids * */ @JsonIgnore public void setSubnetIds(Set subnetIds) { this.subnetIds = subnetIds; } public VPCEndpoint withSubnetIds(Set subnetIds) { this.subnetIds = subnetIds; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcendpointtype * */ @JsonIgnore public CharSequence getVpcEndpointType() { return vpcEndpointType; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcendpointtype * */ @JsonIgnore public void setVpcEndpointType(CharSequence vpcEndpointType) { this.vpcEndpointType = vpcEndpointType; } public VPCEndpoint withVpcEndpointType(CharSequence vpcEndpointType) { this.vpcEndpointType = vpcEndpointType; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcid * */ @JsonIgnore public CharSequence getVpcId() { return vpcId; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpoint.html#cfn-ec2-vpcendpoint-vpcid * */ @JsonIgnore public void setVpcId(CharSequence vpcId) { this.vpcId = vpcId; } public VPCEndpoint withVpcId(CharSequence vpcId) { this.vpcId = vpcId; return this; } @Override public String toString() { return new ToStringBuilder(this).append("policyDocument", policyDocument).append("privateDnsEnabled", privateDnsEnabled).append("routeTableIds", routeTableIds).append("securityGroupIds", securityGroupIds).append("serviceName", serviceName).append("subnetIds", subnetIds).append("vpcEndpointType", vpcEndpointType).append("vpcId", vpcId).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(policyDocument).append(routeTableIds).append(securityGroupIds).append(vpcEndpointType).append(vpcId).append(privateDnsEnabled).append(serviceName).append(subnetIds).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof VPCEndpoint) == false) { return false; } VPCEndpoint rhs = ((VPCEndpoint) other); return new EqualsBuilder().append(policyDocument, rhs.policyDocument).append(routeTableIds, rhs.routeTableIds).append(securityGroupIds, rhs.securityGroupIds).append(vpcEndpointType, rhs.vpcEndpointType).append(vpcId, rhs.vpcId).append(privateDnsEnabled, rhs.privateDnsEnabled).append(serviceName, rhs.serviceName).append(subnetIds, rhs.subnetIds).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy