/* * 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 connection to a service. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class VpcEndpointConnection implements Serializable, Cloneable { /** ** The ID of the service to which the endpoint is connected. *
*/ private String serviceId; /** ** The ID of the VPC endpoint. *
*/ private String vpcEndpointId; /** ** The ID of the Amazon Web Services account that owns the VPC endpoint. *
*/ private String vpcEndpointOwner; /** ** The state of the VPC endpoint. *
*/ private String vpcEndpointState; /** ** The date and time that the VPC endpoint was created. *
*/ private java.util.Date creationTimestamp; /** ** The DNS entries for the VPC endpoint. *
*/ private com.amazonaws.internal.SdkInternalList* The Amazon Resource Names (ARNs) of the network load balancers for the service. *
*/ private com.amazonaws.internal.SdkInternalList* The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service. *
*/ private com.amazonaws.internal.SdkInternalList* The IP address type for the endpoint. *
*/ private String ipAddressType; /** ** The ID of the VPC endpoint connection. *
*/ private String vpcEndpointConnectionId; /** ** The tags. *
*/ private com.amazonaws.internal.SdkInternalList* The ID of the service to which the endpoint is connected. *
* * @param serviceId * The ID of the service to which the endpoint is connected. */ public void setServiceId(String serviceId) { this.serviceId = serviceId; } /** ** The ID of the service to which the endpoint is connected. *
* * @return The ID of the service to which the endpoint is connected. */ public String getServiceId() { return this.serviceId; } /** ** The ID of the service to which the endpoint is connected. *
* * @param serviceId * The ID of the service to which the endpoint is connected. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpointConnection withServiceId(String serviceId) { setServiceId(serviceId); return this; } /** ** 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 VpcEndpointConnection withVpcEndpointId(String vpcEndpointId) { setVpcEndpointId(vpcEndpointId); return this; } /** ** The ID of the Amazon Web Services account that owns the VPC endpoint. *
* * @param vpcEndpointOwner * The ID of the Amazon Web Services account that owns the VPC endpoint. */ public void setVpcEndpointOwner(String vpcEndpointOwner) { this.vpcEndpointOwner = vpcEndpointOwner; } /** ** The ID of the Amazon Web Services account that owns the VPC endpoint. *
* * @return The ID of the Amazon Web Services account that owns the VPC endpoint. */ public String getVpcEndpointOwner() { return this.vpcEndpointOwner; } /** ** The ID of the Amazon Web Services account that owns the VPC endpoint. *
* * @param vpcEndpointOwner * The ID of the Amazon Web Services account that owns the VPC endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpointConnection withVpcEndpointOwner(String vpcEndpointOwner) { setVpcEndpointOwner(vpcEndpointOwner); return this; } /** ** The state of the VPC endpoint. *
* * @param vpcEndpointState * The state of the VPC endpoint. * @see State */ public void setVpcEndpointState(String vpcEndpointState) { this.vpcEndpointState = vpcEndpointState; } /** ** The state of the VPC endpoint. *
* * @return The state of the VPC endpoint. * @see State */ public String getVpcEndpointState() { return this.vpcEndpointState; } /** ** The state of the VPC endpoint. *
* * @param vpcEndpointState * The state of the VPC endpoint. * @return Returns a reference to this object so that method calls can be chained together. * @see State */ public VpcEndpointConnection withVpcEndpointState(String vpcEndpointState) { setVpcEndpointState(vpcEndpointState); return this; } /** ** The state of the VPC endpoint. *
* * @param vpcEndpointState * The state of the VPC endpoint. * @return Returns a reference to this object so that method calls can be chained together. * @see State */ public VpcEndpointConnection withVpcEndpointState(State vpcEndpointState) { this.vpcEndpointState = vpcEndpointState.toString(); return this; } /** ** The date and time that the VPC endpoint was created. *
* * @param creationTimestamp * The date and time that the VPC endpoint was created. */ public void setCreationTimestamp(java.util.Date creationTimestamp) { this.creationTimestamp = creationTimestamp; } /** ** The date and time that the VPC endpoint was created. *
* * @return The date and time that the VPC endpoint was created. */ public java.util.Date getCreationTimestamp() { return this.creationTimestamp; } /** ** The date and time that the VPC endpoint was created. *
* * @param creationTimestamp * The date and time that the VPC endpoint was created. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpointConnection withCreationTimestamp(java.util.Date creationTimestamp) { setCreationTimestamp(creationTimestamp); return this; } /** ** The DNS entries for the VPC endpoint. *
* * @return The DNS entries for the VPC endpoint. */ public java.util.List* The DNS entries for the VPC endpoint. *
* * @param dnsEntries * The DNS entries for the VPC endpoint. */ public void setDnsEntries(java.util.Collection* The DNS entries for the VPC 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 * The DNS entries for the VPC endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpointConnection withDnsEntries(DnsEntry... dnsEntries) { if (this.dnsEntries == null) { setDnsEntries(new com.amazonaws.internal.SdkInternalList* The DNS entries for the VPC endpoint. *
* * @param dnsEntries * The DNS entries for the VPC endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpointConnection withDnsEntries(java.util.Collection* The Amazon Resource Names (ARNs) of the network load balancers for the service. *
* * @return The Amazon Resource Names (ARNs) of the network load balancers for the service. */ public java.util.List* The Amazon Resource Names (ARNs) of the network load balancers for the service. *
* * @param networkLoadBalancerArns * The Amazon Resource Names (ARNs) of the network load balancers for the service. */ public void setNetworkLoadBalancerArns(java.util.Collection* The Amazon Resource Names (ARNs) of the network load balancers for the service. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setNetworkLoadBalancerArns(java.util.Collection)} or * {@link #withNetworkLoadBalancerArns(java.util.Collection)} if you want to override the existing values. *
* * @param networkLoadBalancerArns * The Amazon Resource Names (ARNs) of the network load balancers for the service. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpointConnection withNetworkLoadBalancerArns(String... networkLoadBalancerArns) { if (this.networkLoadBalancerArns == null) { setNetworkLoadBalancerArns(new com.amazonaws.internal.SdkInternalList* The Amazon Resource Names (ARNs) of the network load balancers for the service. *
* * @param networkLoadBalancerArns * The Amazon Resource Names (ARNs) of the network load balancers for the service. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpointConnection withNetworkLoadBalancerArns(java.util.Collection* The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service. *
* * @return The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service. */ public java.util.List* The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service. *
* * @param gatewayLoadBalancerArns * The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service. */ public void setGatewayLoadBalancerArns(java.util.Collection* The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setGatewayLoadBalancerArns(java.util.Collection)} or * {@link #withGatewayLoadBalancerArns(java.util.Collection)} if you want to override the existing values. *
* * @param gatewayLoadBalancerArns * The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpointConnection withGatewayLoadBalancerArns(String... gatewayLoadBalancerArns) { if (this.gatewayLoadBalancerArns == null) { setGatewayLoadBalancerArns(new com.amazonaws.internal.SdkInternalList* The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service. *
* * @param gatewayLoadBalancerArns * The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the service. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpointConnection withGatewayLoadBalancerArns(java.util.Collection* 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 VpcEndpointConnection withIpAddressType(String ipAddressType) { setIpAddressType(ipAddressType); return this; } /** ** 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 VpcEndpointConnection withIpAddressType(IpAddressType ipAddressType) { this.ipAddressType = ipAddressType.toString(); return this; } /** ** The ID of the VPC endpoint connection. *
* * @param vpcEndpointConnectionId * The ID of the VPC endpoint connection. */ public void setVpcEndpointConnectionId(String vpcEndpointConnectionId) { this.vpcEndpointConnectionId = vpcEndpointConnectionId; } /** ** The ID of the VPC endpoint connection. *
* * @return The ID of the VPC endpoint connection. */ public String getVpcEndpointConnectionId() { return this.vpcEndpointConnectionId; } /** ** The ID of the VPC endpoint connection. *
* * @param vpcEndpointConnectionId * The ID of the VPC endpoint connection. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpointConnection withVpcEndpointConnectionId(String vpcEndpointConnectionId) { setVpcEndpointConnectionId(vpcEndpointConnectionId); return this; } /** ** The tags. *
* * @return The tags. */ public java.util.List* The tags. *
* * @param tags * The tags. */ public void setTags(java.util.Collection* The tags. *
** 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. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpointConnection withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList* The tags. *
* * @param tags * The tags. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcEndpointConnection withTags(java.util.Collection