/** * 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 #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes a service configuration for a VPC endpoint service.

See * Also:

AWS * API Reference

*/ class ServiceConfiguration { public: AWS_EC2_API ServiceConfiguration(); AWS_EC2_API ServiceConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ServiceConfiguration& 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 type of service.

*/ inline const Aws::Vector& GetServiceType() const{ return m_serviceType; } /** *

The type of service.

*/ inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; } /** *

The type of service.

*/ inline void SetServiceType(const Aws::Vector& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; } /** *

The type of service.

*/ inline void SetServiceType(Aws::Vector&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); } /** *

The type of service.

*/ inline ServiceConfiguration& WithServiceType(const Aws::Vector& value) { SetServiceType(value); return *this;} /** *

The type of service.

*/ inline ServiceConfiguration& WithServiceType(Aws::Vector&& value) { SetServiceType(std::move(value)); return *this;} /** *

The type of service.

*/ inline ServiceConfiguration& AddServiceType(const ServiceTypeDetail& value) { m_serviceTypeHasBeenSet = true; m_serviceType.push_back(value); return *this; } /** *

The type of service.

*/ inline ServiceConfiguration& AddServiceType(ServiceTypeDetail&& value) { m_serviceTypeHasBeenSet = true; m_serviceType.push_back(std::move(value)); return *this; } /** *

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The name of the service.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the service.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the service.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the service.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the service.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the service.

*/ inline ServiceConfiguration& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the service.

*/ inline ServiceConfiguration& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the service.

*/ inline ServiceConfiguration& WithServiceName(const char* value) { SetServiceName(value); return *this;} /** *

The service state.

*/ inline const ServiceState& GetServiceState() const{ return m_serviceState; } /** *

The service state.

*/ inline bool ServiceStateHasBeenSet() const { return m_serviceStateHasBeenSet; } /** *

The service state.

*/ inline void SetServiceState(const ServiceState& value) { m_serviceStateHasBeenSet = true; m_serviceState = value; } /** *

The service state.

*/ inline void SetServiceState(ServiceState&& value) { m_serviceStateHasBeenSet = true; m_serviceState = std::move(value); } /** *

The service state.

*/ inline ServiceConfiguration& WithServiceState(const ServiceState& value) { SetServiceState(value); return *this;} /** *

The service state.

*/ inline ServiceConfiguration& WithServiceState(ServiceState&& value) { SetServiceState(std::move(value)); return *this;} /** *

The Availability Zones in which the service is available.

*/ inline const Aws::Vector& GetAvailabilityZones() const{ return m_availabilityZones; } /** *

The Availability Zones in which the service is available.

*/ inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; } /** *

The Availability Zones in which the service is available.

*/ inline void SetAvailabilityZones(const Aws::Vector& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; } /** *

The Availability Zones in which the service is available.

*/ inline void SetAvailabilityZones(Aws::Vector&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); } /** *

The Availability Zones in which the service is available.

*/ inline ServiceConfiguration& WithAvailabilityZones(const Aws::Vector& value) { SetAvailabilityZones(value); return *this;} /** *

The Availability Zones in which the service is available.

*/ inline ServiceConfiguration& WithAvailabilityZones(Aws::Vector&& value) { SetAvailabilityZones(std::move(value)); return *this;} /** *

The Availability Zones in which the service is available.

*/ inline ServiceConfiguration& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

The Availability Zones in which the service is available.

*/ inline ServiceConfiguration& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; } /** *

The Availability Zones in which the service is available.

*/ inline ServiceConfiguration& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

Indicates whether requests from other Amazon Web Services accounts to create * an endpoint to the service must first be accepted.

*/ inline bool GetAcceptanceRequired() const{ return m_acceptanceRequired; } /** *

Indicates whether requests from other Amazon Web Services accounts to create * an endpoint to the service must first be accepted.

*/ inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; } /** *

Indicates whether requests from other Amazon Web Services accounts to create * an endpoint to the service must first be accepted.

*/ inline void SetAcceptanceRequired(bool value) { m_acceptanceRequiredHasBeenSet = true; m_acceptanceRequired = value; } /** *

Indicates whether requests from other Amazon Web Services accounts to create * an endpoint to the service must first be accepted.

*/ inline ServiceConfiguration& WithAcceptanceRequired(bool value) { SetAcceptanceRequired(value); return *this;} /** *

Indicates whether the service manages its VPC endpoints. Management of the * service VPC endpoints using the VPC endpoint API is restricted.

*/ inline bool GetManagesVpcEndpoints() const{ return m_managesVpcEndpoints; } /** *

Indicates whether the service manages its VPC endpoints. Management of the * service VPC endpoints using the VPC endpoint API is restricted.

*/ inline bool ManagesVpcEndpointsHasBeenSet() const { return m_managesVpcEndpointsHasBeenSet; } /** *

Indicates whether the service manages its VPC endpoints. Management of the * service VPC endpoints using the VPC endpoint API is restricted.

*/ inline void SetManagesVpcEndpoints(bool value) { m_managesVpcEndpointsHasBeenSet = true; m_managesVpcEndpoints = value; } /** *

Indicates whether the service manages its VPC endpoints. Management of the * service VPC endpoints using the VPC endpoint API is restricted.

*/ inline ServiceConfiguration& WithManagesVpcEndpoints(bool value) { SetManagesVpcEndpoints(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 ServiceConfiguration& WithNetworkLoadBalancerArns(const Aws::Vector& value) { SetNetworkLoadBalancerArns(value); return *this;} /** *

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

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

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

*/ inline ServiceConfiguration& 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 ServiceConfiguration& 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 ServiceConfiguration& 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 ServiceConfiguration& WithGatewayLoadBalancerArns(const Aws::Vector& value) { SetGatewayLoadBalancerArns(value); return *this;} /** *

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

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

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

*/ inline ServiceConfiguration& 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 ServiceConfiguration& 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 ServiceConfiguration& AddGatewayLoadBalancerArns(const char* value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns.push_back(value); return *this; } /** *

The supported IP address types.

*/ inline const Aws::Vector& GetSupportedIpAddressTypes() const{ return m_supportedIpAddressTypes; } /** *

The supported IP address types.

*/ inline bool SupportedIpAddressTypesHasBeenSet() const { return m_supportedIpAddressTypesHasBeenSet; } /** *

The supported IP address types.

*/ inline void SetSupportedIpAddressTypes(const Aws::Vector& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes = value; } /** *

The supported IP address types.

*/ inline void SetSupportedIpAddressTypes(Aws::Vector&& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes = std::move(value); } /** *

The supported IP address types.

*/ inline ServiceConfiguration& WithSupportedIpAddressTypes(const Aws::Vector& value) { SetSupportedIpAddressTypes(value); return *this;} /** *

The supported IP address types.

*/ inline ServiceConfiguration& WithSupportedIpAddressTypes(Aws::Vector&& value) { SetSupportedIpAddressTypes(std::move(value)); return *this;} /** *

The supported IP address types.

*/ inline ServiceConfiguration& AddSupportedIpAddressTypes(const ServiceConnectivityType& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes.push_back(value); return *this; } /** *

The supported IP address types.

*/ inline ServiceConfiguration& AddSupportedIpAddressTypes(ServiceConnectivityType&& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes.push_back(std::move(value)); return *this; } /** *

The DNS names for the service.

*/ inline const Aws::Vector& GetBaseEndpointDnsNames() const{ return m_baseEndpointDnsNames; } /** *

The DNS names for the service.

*/ inline bool BaseEndpointDnsNamesHasBeenSet() const { return m_baseEndpointDnsNamesHasBeenSet; } /** *

The DNS names for the service.

*/ inline void SetBaseEndpointDnsNames(const Aws::Vector& value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames = value; } /** *

The DNS names for the service.

*/ inline void SetBaseEndpointDnsNames(Aws::Vector&& value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames = std::move(value); } /** *

The DNS names for the service.

*/ inline ServiceConfiguration& WithBaseEndpointDnsNames(const Aws::Vector& value) { SetBaseEndpointDnsNames(value); return *this;} /** *

The DNS names for the service.

*/ inline ServiceConfiguration& WithBaseEndpointDnsNames(Aws::Vector&& value) { SetBaseEndpointDnsNames(std::move(value)); return *this;} /** *

The DNS names for the service.

*/ inline ServiceConfiguration& AddBaseEndpointDnsNames(const Aws::String& value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames.push_back(value); return *this; } /** *

The DNS names for the service.

*/ inline ServiceConfiguration& AddBaseEndpointDnsNames(Aws::String&& value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames.push_back(std::move(value)); return *this; } /** *

The DNS names for the service.

*/ inline ServiceConfiguration& AddBaseEndpointDnsNames(const char* value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames.push_back(value); return *this; } /** *

The private DNS name for the service.

*/ inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; } /** *

The private DNS name for the service.

*/ inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; } /** *

The private DNS name for the service.

*/ inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; } /** *

The private DNS name for the service.

*/ inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); } /** *

The private DNS name for the service.

*/ inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); } /** *

The private DNS name for the service.

*/ inline ServiceConfiguration& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;} /** *

The private DNS name for the service.

*/ inline ServiceConfiguration& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;} /** *

The private DNS name for the service.

*/ inline ServiceConfiguration& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;} /** *

Information about the endpoint service private DNS name configuration.

*/ inline const PrivateDnsNameConfiguration& GetPrivateDnsNameConfiguration() const{ return m_privateDnsNameConfiguration; } /** *

Information about the endpoint service private DNS name configuration.

*/ inline bool PrivateDnsNameConfigurationHasBeenSet() const { return m_privateDnsNameConfigurationHasBeenSet; } /** *

Information about the endpoint service private DNS name configuration.

*/ inline void SetPrivateDnsNameConfiguration(const PrivateDnsNameConfiguration& value) { m_privateDnsNameConfigurationHasBeenSet = true; m_privateDnsNameConfiguration = value; } /** *

Information about the endpoint service private DNS name configuration.

*/ inline void SetPrivateDnsNameConfiguration(PrivateDnsNameConfiguration&& value) { m_privateDnsNameConfigurationHasBeenSet = true; m_privateDnsNameConfiguration = std::move(value); } /** *

Information about the endpoint service private DNS name configuration.

*/ inline ServiceConfiguration& WithPrivateDnsNameConfiguration(const PrivateDnsNameConfiguration& value) { SetPrivateDnsNameConfiguration(value); return *this;} /** *

Information about the endpoint service private DNS name configuration.

*/ inline ServiceConfiguration& WithPrivateDnsNameConfiguration(PrivateDnsNameConfiguration&& value) { SetPrivateDnsNameConfiguration(std::move(value)); return *this;} /** *

The payer responsibility.

*/ inline const PayerResponsibility& GetPayerResponsibility() const{ return m_payerResponsibility; } /** *

The payer responsibility.

*/ inline bool PayerResponsibilityHasBeenSet() const { return m_payerResponsibilityHasBeenSet; } /** *

The payer responsibility.

*/ inline void SetPayerResponsibility(const PayerResponsibility& value) { m_payerResponsibilityHasBeenSet = true; m_payerResponsibility = value; } /** *

The payer responsibility.

*/ inline void SetPayerResponsibility(PayerResponsibility&& value) { m_payerResponsibilityHasBeenSet = true; m_payerResponsibility = std::move(value); } /** *

The payer responsibility.

*/ inline ServiceConfiguration& WithPayerResponsibility(const PayerResponsibility& value) { SetPayerResponsibility(value); return *this;} /** *

The payer responsibility.

*/ inline ServiceConfiguration& WithPayerResponsibility(PayerResponsibility&& value) { SetPayerResponsibility(std::move(value)); return *this;} /** *

The tags assigned to the service.

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

The tags assigned to the service.

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

The tags assigned to the service.

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

The tags assigned to the service.

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

The tags assigned to the service.

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

The tags assigned to the service.

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

The tags assigned to the service.

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

The tags assigned to the service.

*/ inline ServiceConfiguration& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::Vector m_serviceType; bool m_serviceTypeHasBeenSet = false; Aws::String m_serviceId; bool m_serviceIdHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; ServiceState m_serviceState; bool m_serviceStateHasBeenSet = false; Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; bool m_acceptanceRequired; bool m_acceptanceRequiredHasBeenSet = false; bool m_managesVpcEndpoints; bool m_managesVpcEndpointsHasBeenSet = false; Aws::Vector m_networkLoadBalancerArns; bool m_networkLoadBalancerArnsHasBeenSet = false; Aws::Vector m_gatewayLoadBalancerArns; bool m_gatewayLoadBalancerArnsHasBeenSet = false; Aws::Vector m_supportedIpAddressTypes; bool m_supportedIpAddressTypesHasBeenSet = false; Aws::Vector m_baseEndpointDnsNames; bool m_baseEndpointDnsNamesHasBeenSet = false; Aws::String m_privateDnsName; bool m_privateDnsNameHasBeenSet = false; PrivateDnsNameConfiguration m_privateDnsNameConfiguration; bool m_privateDnsNameConfigurationHasBeenSet = false; PayerResponsibility m_payerResponsibility; bool m_payerResponsibilityHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws