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

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

Go to download

This library is a complete mapping of the AWS CloudFormation Resource Specification into Java objects. The objects have been generated directly from the specification so should be a direct one to one mapping.

The newest version!

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;


/**
 * VPCEndpointServicePermissions
 * 

* http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html * */ @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonPropertyOrder({ "AllowedPrincipals", "ServiceId" }) public class VPCEndpointServicePermissions { /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-allowedprincipals * */ @JsonProperty("AllowedPrincipals") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-allowedprincipals") private List allowedPrincipals = new ArrayList(); /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-serviceid * */ @JsonProperty("ServiceId") @JsonPropertyDescription("http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-serviceid") private CharSequence serviceId; /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-allowedprincipals * */ @JsonIgnore public List getAllowedPrincipals() { return allowedPrincipals; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-allowedprincipals * */ @JsonIgnore public void setAllowedPrincipals(List allowedPrincipals) { this.allowedPrincipals = allowedPrincipals; } public VPCEndpointServicePermissions withAllowedPrincipals(List allowedPrincipals) { this.allowedPrincipals = allowedPrincipals; return this; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-serviceid * */ @JsonIgnore public CharSequence getServiceId() { return serviceId; } /** * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpcendpointservicepermissions.html#cfn-ec2-vpcendpointservicepermissions-serviceid * */ @JsonIgnore public void setServiceId(CharSequence serviceId) { this.serviceId = serviceId; } public VPCEndpointServicePermissions withServiceId(CharSequence serviceId) { this.serviceId = serviceId; return this; } @Override public String toString() { return new ToStringBuilder(this).append("allowedPrincipals", allowedPrincipals).append("serviceId", serviceId).toString(); } @Override public int hashCode() { return new HashCodeBuilder().append(serviceId).append(allowedPrincipals).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof VPCEndpointServicePermissions) == false) { return false; } VPCEndpointServicePermissions rhs = ((VPCEndpointServicePermissions) other); return new EqualsBuilder().append(serviceId, rhs.serviceId).append(allowedPrincipals, rhs.allowedPrincipals).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy