/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a VPC endpoint.See Also:
AWS API
* Reference
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 VpcEndpoint& WithVpcEndpointId(const Aws::String& value) { SetVpcEndpointId(value); return *this;} /** *The ID of the VPC endpoint.
*/ inline VpcEndpoint& WithVpcEndpointId(Aws::String&& value) { SetVpcEndpointId(std::move(value)); return *this;} /** *The ID of the VPC endpoint.
*/ inline VpcEndpoint& WithVpcEndpointId(const char* value) { SetVpcEndpointId(value); return *this;} /** *The type of endpoint.
*/ inline const VpcEndpointType& GetVpcEndpointType() const{ return m_vpcEndpointType; } /** *The type of endpoint.
*/ inline bool VpcEndpointTypeHasBeenSet() const { return m_vpcEndpointTypeHasBeenSet; } /** *The type of endpoint.
*/ inline void SetVpcEndpointType(const VpcEndpointType& value) { m_vpcEndpointTypeHasBeenSet = true; m_vpcEndpointType = value; } /** *The type of endpoint.
*/ inline void SetVpcEndpointType(VpcEndpointType&& value) { m_vpcEndpointTypeHasBeenSet = true; m_vpcEndpointType = std::move(value); } /** *The type of endpoint.
*/ inline VpcEndpoint& WithVpcEndpointType(const VpcEndpointType& value) { SetVpcEndpointType(value); return *this;} /** *The type of endpoint.
*/ inline VpcEndpoint& WithVpcEndpointType(VpcEndpointType&& value) { SetVpcEndpointType(std::move(value)); return *this;} /** *The ID of the VPC to which the endpoint is associated.
*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *The ID of the VPC to which the endpoint is associated.
*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *The ID of the VPC to which the endpoint is associated.
*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *The ID of the VPC to which the endpoint is associated.
*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *The ID of the VPC to which the endpoint is associated.
*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *The ID of the VPC to which the endpoint is associated.
*/ inline VpcEndpoint& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *The ID of the VPC to which the endpoint is associated.
*/ inline VpcEndpoint& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *The ID of the VPC to which the endpoint is associated.
*/ inline VpcEndpoint& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *The name of the service to which the endpoint is associated.
*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *The name of the service to which the endpoint is associated.
*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *The name of the service to which the endpoint is associated.
*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *The name of the service to which the endpoint is associated.
*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *The name of the service to which the endpoint is associated.
*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *The name of the service to which the endpoint is associated.
*/ inline VpcEndpoint& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *The name of the service to which the endpoint is associated.
*/ inline VpcEndpoint& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *The name of the service to which the endpoint is associated.
*/ inline VpcEndpoint& WithServiceName(const char* value) { SetServiceName(value); return *this;} /** *The state of the VPC endpoint.
*/ inline const State& GetState() const{ return m_state; } /** *The state of the VPC endpoint.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the VPC endpoint.
*/ inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the VPC endpoint.
*/ inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the VPC endpoint.
*/ inline VpcEndpoint& WithState(const State& value) { SetState(value); return *this;} /** *The state of the VPC endpoint.
*/ inline VpcEndpoint& WithState(State&& value) { SetState(std::move(value)); return *this;} /** *The policy document associated with the endpoint, if applicable.
*/ inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; } /** *The policy document associated with the endpoint, if applicable.
*/ inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; } /** *The policy document associated with the endpoint, if applicable.
*/ inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; } /** *The policy document associated with the endpoint, if applicable.
*/ inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); } /** *The policy document associated with the endpoint, if applicable.
*/ inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); } /** *The policy document associated with the endpoint, if applicable.
*/ inline VpcEndpoint& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;} /** *The policy document associated with the endpoint, if applicable.
*/ inline VpcEndpoint& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;} /** *The policy document associated with the endpoint, if applicable.
*/ inline VpcEndpoint& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;} /** *(Gateway endpoint) One or more route tables associated with the endpoint.
*/ inline const Aws::Vector(Gateway endpoint) One or more route tables associated with the endpoint.
*/ inline bool RouteTableIdsHasBeenSet() const { return m_routeTableIdsHasBeenSet; } /** *(Gateway endpoint) One or more route tables associated with the endpoint.
*/ inline void SetRouteTableIds(const Aws::Vector(Gateway endpoint) One or more route tables associated with the endpoint.
*/ inline void SetRouteTableIds(Aws::Vector(Gateway endpoint) One or more route tables associated with the endpoint.
*/ inline VpcEndpoint& WithRouteTableIds(const Aws::Vector(Gateway endpoint) One or more route tables associated with the endpoint.
*/ inline VpcEndpoint& WithRouteTableIds(Aws::Vector(Gateway endpoint) One or more route tables associated with the endpoint.
*/ inline VpcEndpoint& AddRouteTableIds(const Aws::String& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(value); return *this; } /** *(Gateway endpoint) One or more route tables associated with the endpoint.
*/ inline VpcEndpoint& AddRouteTableIds(Aws::String&& value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(std::move(value)); return *this; } /** *(Gateway endpoint) One or more route tables associated with the endpoint.
*/ inline VpcEndpoint& AddRouteTableIds(const char* value) { m_routeTableIdsHasBeenSet = true; m_routeTableIds.push_back(value); return *this; } /** *(Interface endpoint) One or more subnets in which the endpoint is * located.
*/ inline const Aws::Vector(Interface endpoint) One or more subnets in which the endpoint is * located.
*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *(Interface endpoint) One or more subnets in which the endpoint is * located.
*/ inline void SetSubnetIds(const Aws::Vector(Interface endpoint) One or more subnets in which the endpoint is * located.
*/ inline void SetSubnetIds(Aws::Vector(Interface endpoint) One or more subnets in which the endpoint is * located.
*/ inline VpcEndpoint& WithSubnetIds(const Aws::Vector(Interface endpoint) One or more subnets in which the endpoint is * located.
*/ inline VpcEndpoint& WithSubnetIds(Aws::Vector(Interface endpoint) One or more subnets in which the endpoint is * located.
*/ inline VpcEndpoint& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *(Interface endpoint) One or more subnets in which the endpoint is * located.
*/ inline VpcEndpoint& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *(Interface endpoint) One or more subnets in which the endpoint is * located.
*/ inline VpcEndpoint& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *(Interface endpoint) Information about the security groups that are * associated with the network interface.
*/ inline const Aws::Vector(Interface endpoint) Information about the security groups that are * associated with the network interface.
*/ inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; } /** *(Interface endpoint) Information about the security groups that are * associated with the network interface.
*/ inline void SetGroups(const Aws::Vector(Interface endpoint) Information about the security groups that are * associated with the network interface.
*/ inline void SetGroups(Aws::Vector(Interface endpoint) Information about the security groups that are * associated with the network interface.
*/ inline VpcEndpoint& WithGroups(const Aws::Vector(Interface endpoint) Information about the security groups that are * associated with the network interface.
*/ inline VpcEndpoint& WithGroups(Aws::Vector(Interface endpoint) Information about the security groups that are * associated with the network interface.
*/ inline VpcEndpoint& AddGroups(const SecurityGroupIdentifier& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; } /** *(Interface endpoint) Information about the security groups that are * associated with the network interface.
*/ inline VpcEndpoint& AddGroups(SecurityGroupIdentifier&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; } /** *(Interface endpoint) Indicates whether the VPC is associated with a private * hosted zone.
*/ inline bool GetPrivateDnsEnabled() const{ return m_privateDnsEnabled; } /** *(Interface endpoint) Indicates whether the VPC is associated with a private * hosted zone.
*/ inline bool PrivateDnsEnabledHasBeenSet() const { return m_privateDnsEnabledHasBeenSet; } /** *(Interface endpoint) Indicates whether the VPC is associated with a private * hosted zone.
*/ inline void SetPrivateDnsEnabled(bool value) { m_privateDnsEnabledHasBeenSet = true; m_privateDnsEnabled = value; } /** *(Interface endpoint) Indicates whether the VPC is associated with a private * hosted zone.
*/ inline VpcEndpoint& WithPrivateDnsEnabled(bool value) { SetPrivateDnsEnabled(value); return *this;} /** *Indicates whether the VPC endpoint is being managed by its service.
*/ inline bool GetRequesterManaged() const{ return m_requesterManaged; } /** *Indicates whether the VPC endpoint is being managed by its service.
*/ inline bool RequesterManagedHasBeenSet() const { return m_requesterManagedHasBeenSet; } /** *Indicates whether the VPC endpoint is being managed by its service.
*/ inline void SetRequesterManaged(bool value) { m_requesterManagedHasBeenSet = true; m_requesterManaged = value; } /** *Indicates whether the VPC endpoint is being managed by its service.
*/ inline VpcEndpoint& WithRequesterManaged(bool value) { SetRequesterManaged(value); return *this;} /** *(Interface endpoint) One or more network interfaces for the endpoint.
*/ inline const Aws::Vector(Interface endpoint) One or more network interfaces for the endpoint.
*/ inline bool NetworkInterfaceIdsHasBeenSet() const { return m_networkInterfaceIdsHasBeenSet; } /** *(Interface endpoint) One or more network interfaces for the endpoint.
*/ inline void SetNetworkInterfaceIds(const Aws::Vector(Interface endpoint) One or more network interfaces for the endpoint.
*/ inline void SetNetworkInterfaceIds(Aws::Vector(Interface endpoint) One or more network interfaces for the endpoint.
*/ inline VpcEndpoint& WithNetworkInterfaceIds(const Aws::Vector(Interface endpoint) One or more network interfaces for the endpoint.
*/ inline VpcEndpoint& WithNetworkInterfaceIds(Aws::Vector(Interface endpoint) One or more network interfaces for the endpoint.
*/ inline VpcEndpoint& AddNetworkInterfaceIds(const Aws::String& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(value); return *this; } /** *(Interface endpoint) One or more network interfaces for the endpoint.
*/ inline VpcEndpoint& AddNetworkInterfaceIds(Aws::String&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(std::move(value)); return *this; } /** *(Interface endpoint) One or more network interfaces for the endpoint.
*/ inline VpcEndpoint& AddNetworkInterfaceIds(const char* value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.push_back(value); return *this; } /** *(Interface endpoint) The DNS entries for the endpoint.
*/ inline const Aws::Vector(Interface endpoint) The DNS entries for the endpoint.
*/ inline bool DnsEntriesHasBeenSet() const { return m_dnsEntriesHasBeenSet; } /** *(Interface endpoint) The DNS entries for the endpoint.
*/ inline void SetDnsEntries(const Aws::Vector(Interface endpoint) The DNS entries for the endpoint.
*/ inline void SetDnsEntries(Aws::Vector(Interface endpoint) The DNS entries for the endpoint.
*/ inline VpcEndpoint& WithDnsEntries(const Aws::Vector(Interface endpoint) The DNS entries for the endpoint.
*/ inline VpcEndpoint& WithDnsEntries(Aws::Vector(Interface endpoint) The DNS entries for the endpoint.
*/ inline VpcEndpoint& AddDnsEntries(const DnsEntry& value) { m_dnsEntriesHasBeenSet = true; m_dnsEntries.push_back(value); return *this; } /** *(Interface endpoint) The DNS entries for the endpoint.
*/ inline VpcEndpoint& AddDnsEntries(DnsEntry&& value) { m_dnsEntriesHasBeenSet = true; m_dnsEntries.push_back(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 VpcEndpoint& WithCreationTimestamp(const Aws::Utils::DateTime& value) { SetCreationTimestamp(value); return *this;} /** *The date and time that the VPC endpoint was created.
*/ inline VpcEndpoint& WithCreationTimestamp(Aws::Utils::DateTime&& value) { SetCreationTimestamp(std::move(value)); return *this;} /** *Any tags assigned to the VPC endpoint.
*/ inline const Aws::VectorAny tags assigned to the VPC endpoint.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Any tags assigned to the VPC endpoint.
*/ inline void SetTags(const Aws::VectorAny tags assigned to the VPC endpoint.
*/ inline void SetTags(Aws::VectorAny tags assigned to the VPC endpoint.
*/ inline VpcEndpoint& WithTags(const Aws::VectorAny tags assigned to the VPC endpoint.
*/ inline VpcEndpoint& WithTags(Aws::VectorAny tags assigned to the VPC endpoint.
*/ inline VpcEndpoint& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *Any tags assigned to the VPC endpoint.
*/ inline VpcEndpoint& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *The ID of the AWS account that owns the VPC endpoint.
*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *The ID of the AWS account that owns the VPC endpoint.
*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *The ID of the AWS account that owns the VPC endpoint.
*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *The ID of the AWS account that owns the VPC endpoint.
*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *The ID of the AWS account that owns the VPC endpoint.
*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *The ID of the AWS account that owns the VPC endpoint.
*/ inline VpcEndpoint& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *The ID of the AWS account that owns the VPC endpoint.
*/ inline VpcEndpoint& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *The ID of the AWS account that owns the VPC endpoint.
*/ inline VpcEndpoint& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *The last error that occurred for VPC endpoint.
*/ inline const LastError& GetLastError() const{ return m_lastError; } /** *The last error that occurred for VPC endpoint.
*/ inline bool LastErrorHasBeenSet() const { return m_lastErrorHasBeenSet; } /** *The last error that occurred for VPC endpoint.
*/ inline void SetLastError(const LastError& value) { m_lastErrorHasBeenSet = true; m_lastError = value; } /** *The last error that occurred for VPC endpoint.
*/ inline void SetLastError(LastError&& value) { m_lastErrorHasBeenSet = true; m_lastError = std::move(value); } /** *The last error that occurred for VPC endpoint.
*/ inline VpcEndpoint& WithLastError(const LastError& value) { SetLastError(value); return *this;} /** *The last error that occurred for VPC endpoint.
*/ inline VpcEndpoint& WithLastError(LastError&& value) { SetLastError(std::move(value)); return *this;} private: Aws::String m_vpcEndpointId; bool m_vpcEndpointIdHasBeenSet; VpcEndpointType m_vpcEndpointType; bool m_vpcEndpointTypeHasBeenSet; Aws::String m_vpcId; bool m_vpcIdHasBeenSet; Aws::String m_serviceName; bool m_serviceNameHasBeenSet; State m_state; bool m_stateHasBeenSet; Aws::String m_policyDocument; bool m_policyDocumentHasBeenSet; Aws::Vector