/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a VPC endpoint connection to a service.

See Also:

* AWS * API Reference

*/ class VpcEndpointConnection { public: AWS_EC2_API VpcEndpointConnection(); AWS_EC2_API VpcEndpointConnection(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VpcEndpointConnection& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The ID of the service to which the endpoint is connected.

*/ inline const Aws::String& GetServiceId() const{ return m_serviceId; } /** *

The ID of the service to which the endpoint is connected.

*/ inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; } /** *

The ID of the service to which the endpoint is connected.

*/ inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; } /** *

The ID of the service to which the endpoint is connected.

*/ inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); } /** *

The ID of the service to which the endpoint is connected.

*/ inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); } /** *

The ID of the service to which the endpoint is connected.

*/ inline VpcEndpointConnection& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;} /** *

The ID of the service to which the endpoint is connected.

*/ inline VpcEndpointConnection& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;} /** *

The ID of the service to which the endpoint is connected.

*/ inline VpcEndpointConnection& WithServiceId(const char* value) { SetServiceId(value); return *this;} /** *

The ID of the VPC endpoint.

*/ inline const Aws::String& GetVpcEndpointId() const{ return m_vpcEndpointId; } /** *

The ID of the VPC endpoint.

*/ inline bool VpcEndpointIdHasBeenSet() const { return m_vpcEndpointIdHasBeenSet; } /** *

The ID of the VPC endpoint.

*/ inline void SetVpcEndpointId(const Aws::String& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = value; } /** *

The ID of the VPC endpoint.

*/ inline void SetVpcEndpointId(Aws::String&& value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId = std::move(value); } /** *

The ID of the VPC endpoint.

*/ inline void SetVpcEndpointId(const char* value) { m_vpcEndpointIdHasBeenSet = true; m_vpcEndpointId.assign(value); } /** *

The ID of the VPC endpoint.

*/ inline VpcEndpointConnection& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;} /** *

The ID of the VPC endpoint.

*/ inline VpcEndpointConnection& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;} /** *

The ID of the VPC endpoint.

*/ inline VpcEndpointConnection& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;} /** *

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

*/ inline const Aws::String& GetVpcEndpointOwner() const{ return m_vpcEndpointOwner; } /** *

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

*/ inline bool VpcEndpointOwnerHasBeenSet() const { return m_vpcEndpointOwnerHasBeenSet; } /** *

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

*/ inline void SetVpcEndpointOwner(const Aws::String& value) { m_vpcEndpointOwnerHasBeenSet = true; m_vpcEndpointOwner = value; } /** *

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

*/ inline void SetVpcEndpointOwner(Aws::String&& value) { m_vpcEndpointOwnerHasBeenSet = true; m_vpcEndpointOwner = std::move(value); } /** *

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

*/ inline void SetVpcEndpointOwner(const char* value) { m_vpcEndpointOwnerHasBeenSet = true; m_vpcEndpointOwner.assign(value); } /** *

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

*/ inline VpcEndpointConnection& WithVpcEndpointOwner(const Aws::String& value) { SetVpcEndpointOwner(value); return *this;} /** *

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

*/ inline VpcEndpointConnection& WithVpcEndpointOwner(Aws::String&& value) { SetVpcEndpointOwner(std::move(value)); return *this;} /** *

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

*/ inline VpcEndpointConnection& WithVpcEndpointOwner(const char* value) { SetVpcEndpointOwner(value); return *this;} /** *

The state of the VPC endpoint.

*/ inline const State& GetVpcEndpointState() const{ return m_vpcEndpointState; } /** *

The state of the VPC endpoint.

*/ inline bool VpcEndpointStateHasBeenSet() const { return m_vpcEndpointStateHasBeenSet; } /** *

The state of the VPC endpoint.

*/ inline void SetVpcEndpointState(const State& value) { m_vpcEndpointStateHasBeenSet = true; m_vpcEndpointState = value; } /** *

The state of the VPC endpoint.

*/ inline void SetVpcEndpointState(State&& value) { m_vpcEndpointStateHasBeenSet = true; m_vpcEndpointState = std::move(value); } /** *

The state of the VPC endpoint.

*/ inline VpcEndpointConnection& WithVpcEndpointState(const State& value) { SetVpcEndpointState(value); return *this;} /** *

The state of the VPC endpoint.

*/ inline VpcEndpointConnection& WithVpcEndpointState(State&& value) { SetVpcEndpointState(std::move(value)); return *this;} /** *

The date and time that the VPC endpoint was created.

*/ inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; } /** *

The date and time that the VPC endpoint was created.

*/ inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; } /** *

The date and time that the VPC endpoint was created.

*/ inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; } /** *

The date and time that the VPC endpoint was created.

*/ inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::move(value); } /** *

The date and time that the VPC endpoint was created.

*/ inline VpcEndpointConnection& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;} /** *

The date and time that the VPC endpoint was created.

*/ inline VpcEndpointConnection& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;} /** *

The DNS entries for the VPC endpoint.

*/ inline const Aws::Vector& GetDnsEntries() const{ return m_dnsEntries; } /** *

The DNS entries for the VPC endpoint.

*/ inline bool DnsEntriesHasBeenSet() const { return m_dnsEntriesHasBeenSet; } /** *

The DNS entries for the VPC endpoint.

*/ inline void SetDnsEntries(const Aws::Vector& value) { m_dnsEntriesHasBeenSet = true; m_dnsEntries = value; } /** *

The DNS entries for the VPC endpoint.

*/ inline void SetDnsEntries(Aws::Vector&& value) { m_dnsEntriesHasBeenSet = true; m_dnsEntries = std::move(value); } /** *

The DNS entries for the VPC endpoint.

*/ inline VpcEndpointConnection& WithDnsEntries(const Aws::Vector& value) { SetDnsEntries(value); return *this;} /** *

The DNS entries for the VPC endpoint.

*/ inline VpcEndpointConnection& WithDnsEntries(Aws::Vector&& value) { SetDnsEntries(std::move(value)); return *this;} /** *

The DNS entries for the VPC endpoint.

*/ inline VpcEndpointConnection& AddDnsEntries(const DnsEntry& value) { m_dnsEntriesHasBeenSet = true; m_dnsEntries.push_back(value); return *this; } /** *

The DNS entries for the VPC endpoint.

*/ inline VpcEndpointConnection& AddDnsEntries(DnsEntry&& value) { m_dnsEntriesHasBeenSet = true; m_dnsEntries.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) of the network load balancers for the * service.

*/ inline const Aws::Vector& GetNetworkLoadBalancerArns() const{ return m_networkLoadBalancerArns; } /** *

The Amazon Resource Names (ARNs) of the network load balancers for the * service.

*/ inline bool NetworkLoadBalancerArnsHasBeenSet() const { return m_networkLoadBalancerArnsHasBeenSet; } /** *

The Amazon Resource Names (ARNs) of the network load balancers for the * service.

*/ inline void SetNetworkLoadBalancerArns(const Aws::Vector& value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns = value; } /** *

The Amazon Resource Names (ARNs) of the network load balancers for the * service.

*/ inline void SetNetworkLoadBalancerArns(Aws::Vector&& value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns = std::move(value); } /** *

The Amazon Resource Names (ARNs) of the network load balancers for the * service.

*/ inline VpcEndpointConnection& WithNetworkLoadBalancerArns(const Aws::Vector& value) { SetNetworkLoadBalancerArns(value); return *this;} /** *

The Amazon Resource Names (ARNs) of the network load balancers for the * service.

*/ inline VpcEndpointConnection& WithNetworkLoadBalancerArns(Aws::Vector&& value) { SetNetworkLoadBalancerArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) of the network load balancers for the * service.

*/ inline VpcEndpointConnection& AddNetworkLoadBalancerArns(const Aws::String& value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of the network load balancers for the * service.

*/ inline VpcEndpointConnection& AddNetworkLoadBalancerArns(Aws::String&& value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) of the network load balancers for the * service.

*/ inline VpcEndpointConnection& AddNetworkLoadBalancerArns(const char* value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the * service.

*/ inline const Aws::Vector& GetGatewayLoadBalancerArns() const{ return m_gatewayLoadBalancerArns; } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the * service.

*/ inline bool GatewayLoadBalancerArnsHasBeenSet() const { return m_gatewayLoadBalancerArnsHasBeenSet; } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the * service.

*/ inline void SetGatewayLoadBalancerArns(const Aws::Vector& value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns = value; } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the * service.

*/ inline void SetGatewayLoadBalancerArns(Aws::Vector&& value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns = std::move(value); } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the * service.

*/ inline VpcEndpointConnection& WithGatewayLoadBalancerArns(const Aws::Vector& value) { SetGatewayLoadBalancerArns(value); return *this;} /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the * service.

*/ inline VpcEndpointConnection& WithGatewayLoadBalancerArns(Aws::Vector&& value) { SetGatewayLoadBalancerArns(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the * service.

*/ inline VpcEndpointConnection& AddGatewayLoadBalancerArns(const Aws::String& value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns.push_back(value); return *this; } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the * service.

*/ inline VpcEndpointConnection& AddGatewayLoadBalancerArns(Aws::String&& value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARNs) of the Gateway Load Balancers for the * service.

*/ inline VpcEndpointConnection& AddGatewayLoadBalancerArns(const char* value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns.push_back(value); return *this; } /** *

The IP address type for the endpoint.

*/ inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; } /** *

The IP address type for the endpoint.

*/ inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; } /** *

The IP address type for the endpoint.

*/ inline void SetIpAddressType(const IpAddressType& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; } /** *

The IP address type for the endpoint.

*/ inline void SetIpAddressType(IpAddressType&& value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = std::move(value); } /** *

The IP address type for the endpoint.

*/ inline VpcEndpointConnection& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;} /** *

The IP address type for the endpoint.

*/ inline VpcEndpointConnection& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;} /** *

The ID of the VPC endpoint connection.

*/ inline const Aws::String& GetVpcEndpointConnectionId() const{ return m_vpcEndpointConnectionId; } /** *

The ID of the VPC endpoint connection.

*/ inline bool VpcEndpointConnectionIdHasBeenSet() const { return m_vpcEndpointConnectionIdHasBeenSet; } /** *

The ID of the VPC endpoint connection.

*/ inline void SetVpcEndpointConnectionId(const Aws::String& value) { m_vpcEndpointConnectionIdHasBeenSet = true; m_vpcEndpointConnectionId = value; } /** *

The ID of the VPC endpoint connection.

*/ inline void SetVpcEndpointConnectionId(Aws::String&& value) { m_vpcEndpointConnectionIdHasBeenSet = true; m_vpcEndpointConnectionId = std::move(value); } /** *

The ID of the VPC endpoint connection.

*/ inline void SetVpcEndpointConnectionId(const char* value) { m_vpcEndpointConnectionIdHasBeenSet = true; m_vpcEndpointConnectionId.assign(value); } /** *

The ID of the VPC endpoint connection.

*/ inline VpcEndpointConnection& WithVpcEndpointConnectionId(const Aws::String& value) { SetVpcEndpointConnectionId(value); return *this;} /** *

The ID of the VPC endpoint connection.

*/ inline VpcEndpointConnection& WithVpcEndpointConnectionId(Aws::String&& value) { SetVpcEndpointConnectionId(std::move(value)); return *this;} /** *

The ID of the VPC endpoint connection.

*/ inline VpcEndpointConnection& WithVpcEndpointConnectionId(const char* value) { SetVpcEndpointConnectionId(value); return *this;} /** *

The tags.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags.

*/ inline VpcEndpointConnection& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags.

*/ inline VpcEndpointConnection& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags.

*/ inline VpcEndpointConnection& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags.

*/ inline VpcEndpointConnection& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_serviceId; bool m_serviceIdHasBeenSet = false; Aws::String m_vpcEndpointId; bool m_vpcEndpointIdHasBeenSet = false; Aws::String m_vpcEndpointOwner; bool m_vpcEndpointOwnerHasBeenSet = false; State m_vpcEndpointState; bool m_vpcEndpointStateHasBeenSet = false; Aws::Utils::DateTime m_creationTimestamp; bool m_creationTimestampHasBeenSet = false; Aws::Vector m_dnsEntries; bool m_dnsEntriesHasBeenSet = false; Aws::Vector m_networkLoadBalancerArns; bool m_networkLoadBalancerArnsHasBeenSet = false; Aws::Vector m_gatewayLoadBalancerArns; bool m_gatewayLoadBalancerArnsHasBeenSet = false; IpAddressType m_ipAddressType; bool m_ipAddressTypeHasBeenSet = false; Aws::String m_vpcEndpointConnectionId; bool m_vpcEndpointConnectionIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws