com.amazonaws.services.ec2.model.VpcEndpoint Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ec2 Show documentation
/*
* Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.ec2.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* Describes a VPC endpoint.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class VpcEndpoint implements Serializable, Cloneable {
/**
*
* The ID of the VPC endpoint.
*
*/
private String vpcEndpointId;
/**
*
* The type of endpoint.
*
*/
private String vpcEndpointType;
/**
*
* The ID of the VPC to which the endpoint is associated.
*
*/
private String vpcId;
/**
*
* The name of the service to which the endpoint is associated.
*
*/
private String serviceName;
/**
*
* The state of the VPC endpoint.
*
*/
private String state;
/**
*
* The policy document associated with the endpoint, if applicable.
*
*/
private String policyDocument;
/**
*
* (Gateway endpoint) One or more route tables associated with the endpoint.
*
*/
private com.amazonaws.internal.SdkInternalList routeTableIds;
/**
*
* (Interface endpoint) One or more subnets in which the endpoint is located.
*
*/
private com.amazonaws.internal.SdkInternalList subnetIds;
/**
*
* (Interface endpoint) Information about the security groups associated with the network interface.
*
*/
private com.amazonaws.internal.SdkInternalList groups;
/**
*
* (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
*
*/
private Boolean privateDnsEnabled;
/**
*
* Indicates whether the VPC endpoint is being managed by its service.
*
*/
private Boolean requesterManaged;
/**
*
* (Interface endpoint) One or more network interfaces for the endpoint.
*
*/
private com.amazonaws.internal.SdkInternalList networkInterfaceIds;
/**
*
* (Interface endpoint) The DNS entries for the endpoint.
*
*/
private com.amazonaws.internal.SdkInternalList dnsEntries;
/**
*
* The date and time the VPC endpoint was created.
*
*/
private java.util.Date creationTimestamp;
/**
*
* Any tags assigned to the VPC endpoint.
*
*/
private com.amazonaws.internal.SdkInternalList tags;
/**
*
* The ID of the AWS account that owns the VPC endpoint.
*
*/
private String ownerId;
/**
*
* The ID of the VPC endpoint.
*
*
* @param vpcEndpointId
* The ID of the VPC endpoint.
*/
public void setVpcEndpointId(String vpcEndpointId) {
this.vpcEndpointId = vpcEndpointId;
}
/**
*
* The ID of the VPC endpoint.
*
*
* @return The ID of the VPC endpoint.
*/
public String getVpcEndpointId() {
return this.vpcEndpointId;
}
/**
*
* The ID of the VPC endpoint.
*
*
* @param vpcEndpointId
* The ID of the VPC endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withVpcEndpointId(String vpcEndpointId) {
setVpcEndpointId(vpcEndpointId);
return this;
}
/**
*
* The type of endpoint.
*
*
* @param vpcEndpointType
* The type of endpoint.
* @see VpcEndpointType
*/
public void setVpcEndpointType(String vpcEndpointType) {
this.vpcEndpointType = vpcEndpointType;
}
/**
*
* The type of endpoint.
*
*
* @return The type of endpoint.
* @see VpcEndpointType
*/
public String getVpcEndpointType() {
return this.vpcEndpointType;
}
/**
*
* The type of endpoint.
*
*
* @param vpcEndpointType
* The type of endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
* @see VpcEndpointType
*/
public VpcEndpoint withVpcEndpointType(String vpcEndpointType) {
setVpcEndpointType(vpcEndpointType);
return this;
}
/**
*
* The type of endpoint.
*
*
* @param vpcEndpointType
* The type of endpoint.
* @see VpcEndpointType
*/
public void setVpcEndpointType(VpcEndpointType vpcEndpointType) {
withVpcEndpointType(vpcEndpointType);
}
/**
*
* The type of endpoint.
*
*
* @param vpcEndpointType
* The type of endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
* @see VpcEndpointType
*/
public VpcEndpoint withVpcEndpointType(VpcEndpointType vpcEndpointType) {
this.vpcEndpointType = vpcEndpointType.toString();
return this;
}
/**
*
* The ID of the VPC to which the endpoint is associated.
*
*
* @param vpcId
* The ID of the VPC to which the endpoint is associated.
*/
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
/**
*
* The ID of the VPC to which the endpoint is associated.
*
*
* @return The ID of the VPC to which the endpoint is associated.
*/
public String getVpcId() {
return this.vpcId;
}
/**
*
* The ID of the VPC to which the endpoint is associated.
*
*
* @param vpcId
* The ID of the VPC to which the endpoint is associated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withVpcId(String vpcId) {
setVpcId(vpcId);
return this;
}
/**
*
* The name of the service to which the endpoint is associated.
*
*
* @param serviceName
* The name of the service to which the endpoint is associated.
*/
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
/**
*
* The name of the service to which the endpoint is associated.
*
*
* @return The name of the service to which the endpoint is associated.
*/
public String getServiceName() {
return this.serviceName;
}
/**
*
* The name of the service to which the endpoint is associated.
*
*
* @param serviceName
* The name of the service to which the endpoint is associated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withServiceName(String serviceName) {
setServiceName(serviceName);
return this;
}
/**
*
* The state of the VPC endpoint.
*
*
* @param state
* The state of the VPC endpoint.
* @see State
*/
public void setState(String state) {
this.state = state;
}
/**
*
* The state of the VPC endpoint.
*
*
* @return The state of the VPC endpoint.
* @see State
*/
public String getState() {
return this.state;
}
/**
*
* The state of the VPC endpoint.
*
*
* @param state
* The state of the VPC endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
* @see State
*/
public VpcEndpoint withState(String state) {
setState(state);
return this;
}
/**
*
* The state of the VPC endpoint.
*
*
* @param state
* The state of the VPC endpoint.
* @see State
*/
public void setState(State state) {
withState(state);
}
/**
*
* The state of the VPC endpoint.
*
*
* @param state
* The state of the VPC endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
* @see State
*/
public VpcEndpoint withState(State state) {
this.state = state.toString();
return this;
}
/**
*
* The policy document associated with the endpoint, if applicable.
*
*
* @param policyDocument
* The policy document associated with the endpoint, if applicable.
*/
public void setPolicyDocument(String policyDocument) {
this.policyDocument = policyDocument;
}
/**
*
* The policy document associated with the endpoint, if applicable.
*
*
* @return The policy document associated with the endpoint, if applicable.
*/
public String getPolicyDocument() {
return this.policyDocument;
}
/**
*
* The policy document associated with the endpoint, if applicable.
*
*
* @param policyDocument
* The policy document associated with the endpoint, if applicable.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withPolicyDocument(String policyDocument) {
setPolicyDocument(policyDocument);
return this;
}
/**
*
* (Gateway endpoint) One or more route tables associated with the endpoint.
*
*
* @return (Gateway endpoint) One or more route tables associated with the endpoint.
*/
public java.util.List getRouteTableIds() {
if (routeTableIds == null) {
routeTableIds = new com.amazonaws.internal.SdkInternalList();
}
return routeTableIds;
}
/**
*
* (Gateway endpoint) One or more route tables associated with the endpoint.
*
*
* @param routeTableIds
* (Gateway endpoint) One or more route tables associated with the endpoint.
*/
public void setRouteTableIds(java.util.Collection routeTableIds) {
if (routeTableIds == null) {
this.routeTableIds = null;
return;
}
this.routeTableIds = new com.amazonaws.internal.SdkInternalList(routeTableIds);
}
/**
*
* (Gateway endpoint) One or more route tables associated with the endpoint.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setRouteTableIds(java.util.Collection)} or {@link #withRouteTableIds(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param routeTableIds
* (Gateway endpoint) One or more route tables associated with the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withRouteTableIds(String... routeTableIds) {
if (this.routeTableIds == null) {
setRouteTableIds(new com.amazonaws.internal.SdkInternalList(routeTableIds.length));
}
for (String ele : routeTableIds) {
this.routeTableIds.add(ele);
}
return this;
}
/**
*
* (Gateway endpoint) One or more route tables associated with the endpoint.
*
*
* @param routeTableIds
* (Gateway endpoint) One or more route tables associated with the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withRouteTableIds(java.util.Collection routeTableIds) {
setRouteTableIds(routeTableIds);
return this;
}
/**
*
* (Interface endpoint) One or more subnets in which the endpoint is located.
*
*
* @return (Interface endpoint) One or more subnets in which the endpoint is located.
*/
public java.util.List getSubnetIds() {
if (subnetIds == null) {
subnetIds = new com.amazonaws.internal.SdkInternalList();
}
return subnetIds;
}
/**
*
* (Interface endpoint) One or more subnets in which the endpoint is located.
*
*
* @param subnetIds
* (Interface endpoint) One or more subnets in which the endpoint is located.
*/
public void setSubnetIds(java.util.Collection subnetIds) {
if (subnetIds == null) {
this.subnetIds = null;
return;
}
this.subnetIds = new com.amazonaws.internal.SdkInternalList(subnetIds);
}
/**
*
* (Interface endpoint) One or more subnets in which the endpoint is located.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param subnetIds
* (Interface endpoint) One or more subnets in which the endpoint is located.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withSubnetIds(String... subnetIds) {
if (this.subnetIds == null) {
setSubnetIds(new com.amazonaws.internal.SdkInternalList(subnetIds.length));
}
for (String ele : subnetIds) {
this.subnetIds.add(ele);
}
return this;
}
/**
*
* (Interface endpoint) One or more subnets in which the endpoint is located.
*
*
* @param subnetIds
* (Interface endpoint) One or more subnets in which the endpoint is located.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withSubnetIds(java.util.Collection subnetIds) {
setSubnetIds(subnetIds);
return this;
}
/**
*
* (Interface endpoint) Information about the security groups associated with the network interface.
*
*
* @return (Interface endpoint) Information about the security groups associated with the network interface.
*/
public java.util.List getGroups() {
if (groups == null) {
groups = new com.amazonaws.internal.SdkInternalList();
}
return groups;
}
/**
*
* (Interface endpoint) Information about the security groups associated with the network interface.
*
*
* @param groups
* (Interface endpoint) Information about the security groups associated with the network interface.
*/
public void setGroups(java.util.Collection groups) {
if (groups == null) {
this.groups = null;
return;
}
this.groups = new com.amazonaws.internal.SdkInternalList(groups);
}
/**
*
* (Interface endpoint) Information about the security groups associated with the network interface.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setGroups(java.util.Collection)} or {@link #withGroups(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param groups
* (Interface endpoint) Information about the security groups associated with the network interface.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withGroups(SecurityGroupIdentifier... groups) {
if (this.groups == null) {
setGroups(new com.amazonaws.internal.SdkInternalList(groups.length));
}
for (SecurityGroupIdentifier ele : groups) {
this.groups.add(ele);
}
return this;
}
/**
*
* (Interface endpoint) Information about the security groups associated with the network interface.
*
*
* @param groups
* (Interface endpoint) Information about the security groups associated with the network interface.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withGroups(java.util.Collection groups) {
setGroups(groups);
return this;
}
/**
*
* (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
*
*
* @param privateDnsEnabled
* (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
*/
public void setPrivateDnsEnabled(Boolean privateDnsEnabled) {
this.privateDnsEnabled = privateDnsEnabled;
}
/**
*
* (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
*
*
* @return (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
*/
public Boolean getPrivateDnsEnabled() {
return this.privateDnsEnabled;
}
/**
*
* (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
*
*
* @param privateDnsEnabled
* (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withPrivateDnsEnabled(Boolean privateDnsEnabled) {
setPrivateDnsEnabled(privateDnsEnabled);
return this;
}
/**
*
* (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
*
*
* @return (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone.
*/
public Boolean isPrivateDnsEnabled() {
return this.privateDnsEnabled;
}
/**
*
* Indicates whether the VPC endpoint is being managed by its service.
*
*
* @param requesterManaged
* Indicates whether the VPC endpoint is being managed by its service.
*/
public void setRequesterManaged(Boolean requesterManaged) {
this.requesterManaged = requesterManaged;
}
/**
*
* Indicates whether the VPC endpoint is being managed by its service.
*
*
* @return Indicates whether the VPC endpoint is being managed by its service.
*/
public Boolean getRequesterManaged() {
return this.requesterManaged;
}
/**
*
* Indicates whether the VPC endpoint is being managed by its service.
*
*
* @param requesterManaged
* Indicates whether the VPC endpoint is being managed by its service.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withRequesterManaged(Boolean requesterManaged) {
setRequesterManaged(requesterManaged);
return this;
}
/**
*
* Indicates whether the VPC endpoint is being managed by its service.
*
*
* @return Indicates whether the VPC endpoint is being managed by its service.
*/
public Boolean isRequesterManaged() {
return this.requesterManaged;
}
/**
*
* (Interface endpoint) One or more network interfaces for the endpoint.
*
*
* @return (Interface endpoint) One or more network interfaces for the endpoint.
*/
public java.util.List getNetworkInterfaceIds() {
if (networkInterfaceIds == null) {
networkInterfaceIds = new com.amazonaws.internal.SdkInternalList();
}
return networkInterfaceIds;
}
/**
*
* (Interface endpoint) One or more network interfaces for the endpoint.
*
*
* @param networkInterfaceIds
* (Interface endpoint) One or more network interfaces for the endpoint.
*/
public void setNetworkInterfaceIds(java.util.Collection networkInterfaceIds) {
if (networkInterfaceIds == null) {
this.networkInterfaceIds = null;
return;
}
this.networkInterfaceIds = new com.amazonaws.internal.SdkInternalList(networkInterfaceIds);
}
/**
*
* (Interface endpoint) One or more network interfaces for the endpoint.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setNetworkInterfaceIds(java.util.Collection)} or {@link #withNetworkInterfaceIds(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param networkInterfaceIds
* (Interface endpoint) One or more network interfaces for the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withNetworkInterfaceIds(String... networkInterfaceIds) {
if (this.networkInterfaceIds == null) {
setNetworkInterfaceIds(new com.amazonaws.internal.SdkInternalList(networkInterfaceIds.length));
}
for (String ele : networkInterfaceIds) {
this.networkInterfaceIds.add(ele);
}
return this;
}
/**
*
* (Interface endpoint) One or more network interfaces for the endpoint.
*
*
* @param networkInterfaceIds
* (Interface endpoint) One or more network interfaces for the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withNetworkInterfaceIds(java.util.Collection networkInterfaceIds) {
setNetworkInterfaceIds(networkInterfaceIds);
return this;
}
/**
*
* (Interface endpoint) The DNS entries for the endpoint.
*
*
* @return (Interface endpoint) The DNS entries for the endpoint.
*/
public java.util.List getDnsEntries() {
if (dnsEntries == null) {
dnsEntries = new com.amazonaws.internal.SdkInternalList();
}
return dnsEntries;
}
/**
*
* (Interface endpoint) The DNS entries for the endpoint.
*
*
* @param dnsEntries
* (Interface endpoint) The DNS entries for the endpoint.
*/
public void setDnsEntries(java.util.Collection dnsEntries) {
if (dnsEntries == null) {
this.dnsEntries = null;
return;
}
this.dnsEntries = new com.amazonaws.internal.SdkInternalList(dnsEntries);
}
/**
*
* (Interface endpoint) The DNS entries for the endpoint.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDnsEntries(java.util.Collection)} or {@link #withDnsEntries(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param dnsEntries
* (Interface endpoint) The DNS entries for the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withDnsEntries(DnsEntry... dnsEntries) {
if (this.dnsEntries == null) {
setDnsEntries(new com.amazonaws.internal.SdkInternalList(dnsEntries.length));
}
for (DnsEntry ele : dnsEntries) {
this.dnsEntries.add(ele);
}
return this;
}
/**
*
* (Interface endpoint) The DNS entries for the endpoint.
*
*
* @param dnsEntries
* (Interface endpoint) The DNS entries for the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withDnsEntries(java.util.Collection dnsEntries) {
setDnsEntries(dnsEntries);
return this;
}
/**
*
* The date and time the VPC endpoint was created.
*
*
* @param creationTimestamp
* The date and time the VPC endpoint was created.
*/
public void setCreationTimestamp(java.util.Date creationTimestamp) {
this.creationTimestamp = creationTimestamp;
}
/**
*
* The date and time the VPC endpoint was created.
*
*
* @return The date and time the VPC endpoint was created.
*/
public java.util.Date getCreationTimestamp() {
return this.creationTimestamp;
}
/**
*
* The date and time the VPC endpoint was created.
*
*
* @param creationTimestamp
* The date and time the VPC endpoint was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withCreationTimestamp(java.util.Date creationTimestamp) {
setCreationTimestamp(creationTimestamp);
return this;
}
/**
*
* Any tags assigned to the VPC endpoint.
*
*
* @return Any tags assigned to the VPC endpoint.
*/
public java.util.List getTags() {
if (tags == null) {
tags = new com.amazonaws.internal.SdkInternalList();
}
return tags;
}
/**
*
* Any tags assigned to the VPC endpoint.
*
*
* @param tags
* Any tags assigned to the VPC endpoint.
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new com.amazonaws.internal.SdkInternalList(tags);
}
/**
*
* Any tags assigned to the VPC endpoint.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param tags
* Any tags assigned to the VPC endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withTags(Tag... tags) {
if (this.tags == null) {
setTags(new com.amazonaws.internal.SdkInternalList(tags.length));
}
for (Tag ele : tags) {
this.tags.add(ele);
}
return this;
}
/**
*
* Any tags assigned to the VPC endpoint.
*
*
* @param tags
* Any tags assigned to the VPC endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
*
* The ID of the AWS account that owns the VPC endpoint.
*
*
* @param ownerId
* The ID of the AWS account that owns the VPC endpoint.
*/
public void setOwnerId(String ownerId) {
this.ownerId = ownerId;
}
/**
*
* The ID of the AWS account that owns the VPC endpoint.
*
*
* @return The ID of the AWS account that owns the VPC endpoint.
*/
public String getOwnerId() {
return this.ownerId;
}
/**
*
* The ID of the AWS account that owns the VPC endpoint.
*
*
* @param ownerId
* The ID of the AWS account that owns the VPC endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public VpcEndpoint withOwnerId(String ownerId) {
setOwnerId(ownerId);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getVpcEndpointId() != null)
sb.append("VpcEndpointId: ").append(getVpcEndpointId()).append(",");
if (getVpcEndpointType() != null)
sb.append("VpcEndpointType: ").append(getVpcEndpointType()).append(",");
if (getVpcId() != null)
sb.append("VpcId: ").append(getVpcId()).append(",");
if (getServiceName() != null)
sb.append("ServiceName: ").append(getServiceName()).append(",");
if (getState() != null)
sb.append("State: ").append(getState()).append(",");
if (getPolicyDocument() != null)
sb.append("PolicyDocument: ").append(getPolicyDocument()).append(",");
if (getRouteTableIds() != null)
sb.append("RouteTableIds: ").append(getRouteTableIds()).append(",");
if (getSubnetIds() != null)
sb.append("SubnetIds: ").append(getSubnetIds()).append(",");
if (getGroups() != null)
sb.append("Groups: ").append(getGroups()).append(",");
if (getPrivateDnsEnabled() != null)
sb.append("PrivateDnsEnabled: ").append(getPrivateDnsEnabled()).append(",");
if (getRequesterManaged() != null)
sb.append("RequesterManaged: ").append(getRequesterManaged()).append(",");
if (getNetworkInterfaceIds() != null)
sb.append("NetworkInterfaceIds: ").append(getNetworkInterfaceIds()).append(",");
if (getDnsEntries() != null)
sb.append("DnsEntries: ").append(getDnsEntries()).append(",");
if (getCreationTimestamp() != null)
sb.append("CreationTimestamp: ").append(getCreationTimestamp()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getOwnerId() != null)
sb.append("OwnerId: ").append(getOwnerId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof VpcEndpoint == false)
return false;
VpcEndpoint other = (VpcEndpoint) obj;
if (other.getVpcEndpointId() == null ^ this.getVpcEndpointId() == null)
return false;
if (other.getVpcEndpointId() != null && other.getVpcEndpointId().equals(this.getVpcEndpointId()) == false)
return false;
if (other.getVpcEndpointType() == null ^ this.getVpcEndpointType() == null)
return false;
if (other.getVpcEndpointType() != null && other.getVpcEndpointType().equals(this.getVpcEndpointType()) == false)
return false;
if (other.getVpcId() == null ^ this.getVpcId() == null)
return false;
if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false)
return false;
if (other.getServiceName() == null ^ this.getServiceName() == null)
return false;
if (other.getServiceName() != null && other.getServiceName().equals(this.getServiceName()) == false)
return false;
if (other.getState() == null ^ this.getState() == null)
return false;
if (other.getState() != null && other.getState().equals(this.getState()) == false)
return false;
if (other.getPolicyDocument() == null ^ this.getPolicyDocument() == null)
return false;
if (other.getPolicyDocument() != null && other.getPolicyDocument().equals(this.getPolicyDocument()) == false)
return false;
if (other.getRouteTableIds() == null ^ this.getRouteTableIds() == null)
return false;
if (other.getRouteTableIds() != null && other.getRouteTableIds().equals(this.getRouteTableIds()) == false)
return false;
if (other.getSubnetIds() == null ^ this.getSubnetIds() == null)
return false;
if (other.getSubnetIds() != null && other.getSubnetIds().equals(this.getSubnetIds()) == false)
return false;
if (other.getGroups() == null ^ this.getGroups() == null)
return false;
if (other.getGroups() != null && other.getGroups().equals(this.getGroups()) == false)
return false;
if (other.getPrivateDnsEnabled() == null ^ this.getPrivateDnsEnabled() == null)
return false;
if (other.getPrivateDnsEnabled() != null && other.getPrivateDnsEnabled().equals(this.getPrivateDnsEnabled()) == false)
return false;
if (other.getRequesterManaged() == null ^ this.getRequesterManaged() == null)
return false;
if (other.getRequesterManaged() != null && other.getRequesterManaged().equals(this.getRequesterManaged()) == false)
return false;
if (other.getNetworkInterfaceIds() == null ^ this.getNetworkInterfaceIds() == null)
return false;
if (other.getNetworkInterfaceIds() != null && other.getNetworkInterfaceIds().equals(this.getNetworkInterfaceIds()) == false)
return false;
if (other.getDnsEntries() == null ^ this.getDnsEntries() == null)
return false;
if (other.getDnsEntries() != null && other.getDnsEntries().equals(this.getDnsEntries()) == false)
return false;
if (other.getCreationTimestamp() == null ^ this.getCreationTimestamp() == null)
return false;
if (other.getCreationTimestamp() != null && other.getCreationTimestamp().equals(this.getCreationTimestamp()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getOwnerId() == null ^ this.getOwnerId() == null)
return false;
if (other.getOwnerId() != null && other.getOwnerId().equals(this.getOwnerId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getVpcEndpointId() == null) ? 0 : getVpcEndpointId().hashCode());
hashCode = prime * hashCode + ((getVpcEndpointType() == null) ? 0 : getVpcEndpointType().hashCode());
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());
hashCode = prime * hashCode + ((getServiceName() == null) ? 0 : getServiceName().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getPolicyDocument() == null) ? 0 : getPolicyDocument().hashCode());
hashCode = prime * hashCode + ((getRouteTableIds() == null) ? 0 : getRouteTableIds().hashCode());
hashCode = prime * hashCode + ((getSubnetIds() == null) ? 0 : getSubnetIds().hashCode());
hashCode = prime * hashCode + ((getGroups() == null) ? 0 : getGroups().hashCode());
hashCode = prime * hashCode + ((getPrivateDnsEnabled() == null) ? 0 : getPrivateDnsEnabled().hashCode());
hashCode = prime * hashCode + ((getRequesterManaged() == null) ? 0 : getRequesterManaged().hashCode());
hashCode = prime * hashCode + ((getNetworkInterfaceIds() == null) ? 0 : getNetworkInterfaceIds().hashCode());
hashCode = prime * hashCode + ((getDnsEntries() == null) ? 0 : getDnsEntries().hashCode());
hashCode = prime * hashCode + ((getCreationTimestamp() == null) ? 0 : getCreationTimestamp().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getOwnerId() == null) ? 0 : getOwnerId().hashCode());
return hashCode;
}
@Override
public VpcEndpoint clone() {
try {
return (VpcEndpoint) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}