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

com.amazonaws.services.ec2.model.VpcEndpoint Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon EC2 module holds the client classes that are used for communicating with Amazon EC2 Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2018-2023 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 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 endpoint. *

*/ private String state; /** *

* The policy document associated with the endpoint, if applicable. *

*/ private String policyDocument; /** *

* (Gateway endpoint) The IDs of the route tables associated with the endpoint. *

*/ private com.amazonaws.internal.SdkInternalList routeTableIds; /** *

* (Interface endpoint) The subnets for the endpoint. *

*/ private com.amazonaws.internal.SdkInternalList subnetIds; /** *

* (Interface endpoint) Information about the security groups that are associated with the network interface. *

*/ private com.amazonaws.internal.SdkInternalList groups; /** *

* The IP address type for the endpoint. *

*/ private String ipAddressType; /** *

* The DNS options for the endpoint. *

*/ private DnsOptions dnsOptions; /** *

* (Interface endpoint) Indicates whether the VPC is associated with a private hosted zone. *

*/ private Boolean privateDnsEnabled; /** *

* Indicates whether the endpoint is being managed by its service. *

*/ private Boolean requesterManaged; /** *

* (Interface endpoint) The 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 that the endpoint was created. *

*/ private java.util.Date creationTimestamp; /** *

* The tags assigned to the endpoint. *

*/ private com.amazonaws.internal.SdkInternalList tags; /** *

* The ID of the Amazon Web Services account that owns the endpoint. *

*/ private String ownerId; /** *

* The last error that occurred for endpoint. *

*/ private LastError lastError; /** *

* The ID of the endpoint. *

* * @param vpcEndpointId * The ID of the endpoint. */ public void setVpcEndpointId(String vpcEndpointId) { this.vpcEndpointId = vpcEndpointId; } /** *

* The ID of the endpoint. *

* * @return The ID of the endpoint. */ public String getVpcEndpointId() { return this.vpcEndpointId; } /** *

* The ID of the endpoint. *

* * @param vpcEndpointId * The ID of the 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 endpoint. *

* * @param state * The state of the endpoint. * @see State */ public void setState(String state) { this.state = state; } /** *

* The state of the endpoint. *

* * @return The state of the endpoint. * @see State */ public String getState() { return this.state; } /** *

* The state of the endpoint. *

* * @param state * The state of the 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 endpoint. *

* * @param state * The state of the endpoint. * @see State */ public void setState(State state) { withState(state); } /** *

* The state of the endpoint. *

* * @param state * The state of the 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) The IDs of the route tables associated with the endpoint. *

* * @return (Gateway endpoint) The IDs of the route tables associated with the endpoint. */ public java.util.List getRouteTableIds() { if (routeTableIds == null) { routeTableIds = new com.amazonaws.internal.SdkInternalList(); } return routeTableIds; } /** *

* (Gateway endpoint) The IDs of the route tables associated with the endpoint. *

* * @param routeTableIds * (Gateway endpoint) The IDs of the 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) The IDs of the 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) The IDs of the 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) The IDs of the route tables associated with the endpoint. *

* * @param routeTableIds * (Gateway endpoint) The IDs of the 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) The subnets for the endpoint. *

* * @return (Interface endpoint) The subnets for the endpoint. */ public java.util.List getSubnetIds() { if (subnetIds == null) { subnetIds = new com.amazonaws.internal.SdkInternalList(); } return subnetIds; } /** *

* (Interface endpoint) The subnets for the endpoint. *

* * @param subnetIds * (Interface endpoint) The subnets for the endpoint. */ public void setSubnetIds(java.util.Collection subnetIds) { if (subnetIds == null) { this.subnetIds = null; return; } this.subnetIds = new com.amazonaws.internal.SdkInternalList(subnetIds); } /** *

* (Interface endpoint) The subnets for the endpoint. *

*

* 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) The subnets for the endpoint. * @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) The subnets for the endpoint. *

* * @param subnetIds * (Interface endpoint) The subnets for the endpoint. * @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 that are associated with the network interface. *

* * @return (Interface endpoint) Information about the security groups that are 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 that are associated with the network interface. *

* * @param groups * (Interface endpoint) Information about the security groups that are 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 that are 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 that are 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 that are associated with the network interface. *

* * @param groups * (Interface endpoint) Information about the security groups that are 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; } /** *

* The IP address type for the endpoint. *

* * @param ipAddressType * The IP address type for the endpoint. * @see IpAddressType */ public void setIpAddressType(String ipAddressType) { this.ipAddressType = ipAddressType; } /** *

* The IP address type for the endpoint. *

* * @return The IP address type for the endpoint. * @see IpAddressType */ public String getIpAddressType() { return this.ipAddressType; } /** *

* The IP address type for the endpoint. *

* * @param ipAddressType * The IP address type for the endpoint. * @return Returns a reference to this object so that method calls can be chained together. * @see IpAddressType */ public VpcEndpoint withIpAddressType(String ipAddressType) { setIpAddressType(ipAddressType); return this; } /** *

* The IP address type for the endpoint. *

* * @param ipAddressType * The IP address type for the endpoint. * @see IpAddressType */ public void setIpAddressType(IpAddressType ipAddressType) { withIpAddressType(ipAddressType); } /** *

* The IP address type for the endpoint. *

* * @param ipAddressType * The IP address type for the endpoint. * @return Returns a reference to this object so that method calls can be chained together. * @see IpAddressType */ public VpcEndpoint withIpAddressType(IpAddressType ipAddressType) { this.ipAddressType = ipAddressType.toString(); return this; } /** *

* The DNS options for the endpoint. *

* * @param dnsOptions * The DNS options for the endpoint. */ public void setDnsOptions(DnsOptions dnsOptions) { this.dnsOptions = dnsOptions; } /** *

* The DNS options for the endpoint. *

* * @return The DNS options for the endpoint. */ public DnsOptions getDnsOptions() { return this.dnsOptions; } /** *

* The DNS options for the endpoint. *

* * @param dnsOptions * The DNS options for the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpoint withDnsOptions(DnsOptions dnsOptions) { setDnsOptions(dnsOptions); 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 endpoint is being managed by its service. *

* * @param requesterManaged * Indicates whether the endpoint is being managed by its service. */ public void setRequesterManaged(Boolean requesterManaged) { this.requesterManaged = requesterManaged; } /** *

* Indicates whether the endpoint is being managed by its service. *

* * @return Indicates whether the endpoint is being managed by its service. */ public Boolean getRequesterManaged() { return this.requesterManaged; } /** *

* Indicates whether the endpoint is being managed by its service. *

* * @param requesterManaged * Indicates whether the 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 endpoint is being managed by its service. *

* * @return Indicates whether the endpoint is being managed by its service. */ public Boolean isRequesterManaged() { return this.requesterManaged; } /** *

* (Interface endpoint) The network interfaces for the endpoint. *

* * @return (Interface endpoint) The network interfaces for the endpoint. */ public java.util.List getNetworkInterfaceIds() { if (networkInterfaceIds == null) { networkInterfaceIds = new com.amazonaws.internal.SdkInternalList(); } return networkInterfaceIds; } /** *

* (Interface endpoint) The network interfaces for the endpoint. *

* * @param networkInterfaceIds * (Interface endpoint) The 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) The 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) The 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) The network interfaces for the endpoint. *

* * @param networkInterfaceIds * (Interface endpoint) The 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 that the endpoint was created. *

* * @param creationTimestamp * The date and time that the endpoint was created. */ public void setCreationTimestamp(java.util.Date creationTimestamp) { this.creationTimestamp = creationTimestamp; } /** *

* The date and time that the endpoint was created. *

* * @return The date and time that the endpoint was created. */ public java.util.Date getCreationTimestamp() { return this.creationTimestamp; } /** *

* The date and time that the endpoint was created. *

* * @param creationTimestamp * The date and time that the 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; } /** *

* The tags assigned to the endpoint. *

* * @return The tags assigned to the endpoint. */ public java.util.List getTags() { if (tags == null) { tags = new com.amazonaws.internal.SdkInternalList(); } return tags; } /** *

* The tags assigned to the endpoint. *

* * @param tags * The tags assigned to the endpoint. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new com.amazonaws.internal.SdkInternalList(tags); } /** *

* The tags assigned to the 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 * The tags assigned to the 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; } /** *

* The tags assigned to the endpoint. *

* * @param tags * The tags assigned to the 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 Amazon Web Services account that owns the endpoint. *

* * @param ownerId * The ID of the Amazon Web Services account that owns the endpoint. */ public void setOwnerId(String ownerId) { this.ownerId = ownerId; } /** *

* The ID of the Amazon Web Services account that owns the endpoint. *

* * @return The ID of the Amazon Web Services account that owns the endpoint. */ public String getOwnerId() { return this.ownerId; } /** *

* The ID of the Amazon Web Services account that owns the endpoint. *

* * @param ownerId * The ID of the Amazon Web Services account that owns the 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; } /** *

* The last error that occurred for endpoint. *

* * @param lastError * The last error that occurred for endpoint. */ public void setLastError(LastError lastError) { this.lastError = lastError; } /** *

* The last error that occurred for endpoint. *

* * @return The last error that occurred for endpoint. */ public LastError getLastError() { return this.lastError; } /** *

* The last error that occurred for endpoint. *

* * @param lastError * The last error that occurred for endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpoint withLastError(LastError lastError) { setLastError(lastError); 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 (getIpAddressType() != null) sb.append("IpAddressType: ").append(getIpAddressType()).append(","); if (getDnsOptions() != null) sb.append("DnsOptions: ").append(getDnsOptions()).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()).append(","); if (getLastError() != null) sb.append("LastError: ").append(getLastError()); 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.getIpAddressType() == null ^ this.getIpAddressType() == null) return false; if (other.getIpAddressType() != null && other.getIpAddressType().equals(this.getIpAddressType()) == false) return false; if (other.getDnsOptions() == null ^ this.getDnsOptions() == null) return false; if (other.getDnsOptions() != null && other.getDnsOptions().equals(this.getDnsOptions()) == 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; if (other.getLastError() == null ^ this.getLastError() == null) return false; if (other.getLastError() != null && other.getLastError().equals(this.getLastError()) == 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 + ((getIpAddressType() == null) ? 0 : getIpAddressType().hashCode()); hashCode = prime * hashCode + ((getDnsOptions() == null) ? 0 : getDnsOptions().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()); hashCode = prime * hashCode + ((getLastError() == null) ? 0 : getLastError().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); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy