/** * 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 VPC endpoint service.

See Also:

AWS * API Reference

*/ class ServiceDetail { public: AWS_EC2_API ServiceDetail(); AWS_EC2_API ServiceDetail(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ServiceDetail& 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 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 ServiceDetail& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the service.

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

The name of the service.

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

The ID of the endpoint service.

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

The ID of the endpoint service.

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

The ID of the endpoint service.

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

The ID of the endpoint service.

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

The ID of the endpoint service.

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

The ID of the endpoint service.

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

The ID of the endpoint service.

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

The ID of the endpoint service.

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

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 ServiceDetail& WithServiceType(const Aws::Vector& value) { SetServiceType(value); return *this;} /** *

The type of service.

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

The type of service.

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

The type of service.

*/ inline ServiceDetail& AddServiceType(ServiceTypeDetail&& value) { m_serviceTypeHasBeenSet = true; m_serviceType.push_back(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 ServiceDetail& WithAvailabilityZones(const Aws::Vector& value) { SetAvailabilityZones(value); return *this;} /** *

The Availability Zones in which the service is available.

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

The Availability Zones in which the service is available.

*/ inline ServiceDetail& 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 ServiceDetail& 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 ServiceDetail& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

The Amazon Web Services account ID of the service owner.

*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *

The Amazon Web Services account ID of the service owner.

*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *

The Amazon Web Services account ID of the service owner.

*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *

The Amazon Web Services account ID of the service owner.

*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *

The Amazon Web Services account ID of the service owner.

*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *

The Amazon Web Services account ID of the service owner.

*/ inline ServiceDetail& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *

The Amazon Web Services account ID of the service owner.

*/ inline ServiceDetail& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *

The Amazon Web Services account ID of the service owner.

*/ inline ServiceDetail& WithOwner(const char* value) { SetOwner(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 ServiceDetail& WithBaseEndpointDnsNames(const Aws::Vector& value) { SetBaseEndpointDnsNames(value); return *this;} /** *

The DNS names for the service.

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

The DNS names for the service.

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

The DNS names for the service.

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

The DNS names for the service.

*/ inline ServiceDetail& 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 ServiceDetail& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;} /** *

The private DNS name for the service.

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

The private DNS name for the service.

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

The private DNS names assigned to the VPC endpoint service.

*/ inline const Aws::Vector& GetPrivateDnsNames() const{ return m_privateDnsNames; } /** *

The private DNS names assigned to the VPC endpoint service.

*/ inline bool PrivateDnsNamesHasBeenSet() const { return m_privateDnsNamesHasBeenSet; } /** *

The private DNS names assigned to the VPC endpoint service.

*/ inline void SetPrivateDnsNames(const Aws::Vector& value) { m_privateDnsNamesHasBeenSet = true; m_privateDnsNames = value; } /** *

The private DNS names assigned to the VPC endpoint service.

*/ inline void SetPrivateDnsNames(Aws::Vector&& value) { m_privateDnsNamesHasBeenSet = true; m_privateDnsNames = std::move(value); } /** *

The private DNS names assigned to the VPC endpoint service.

*/ inline ServiceDetail& WithPrivateDnsNames(const Aws::Vector& value) { SetPrivateDnsNames(value); return *this;} /** *

The private DNS names assigned to the VPC endpoint service.

*/ inline ServiceDetail& WithPrivateDnsNames(Aws::Vector&& value) { SetPrivateDnsNames(std::move(value)); return *this;} /** *

The private DNS names assigned to the VPC endpoint service.

*/ inline ServiceDetail& AddPrivateDnsNames(const PrivateDnsDetails& value) { m_privateDnsNamesHasBeenSet = true; m_privateDnsNames.push_back(value); return *this; } /** *

The private DNS names assigned to the VPC endpoint service.

*/ inline ServiceDetail& AddPrivateDnsNames(PrivateDnsDetails&& value) { m_privateDnsNamesHasBeenSet = true; m_privateDnsNames.push_back(std::move(value)); return *this; } /** *

Indicates whether the service supports endpoint policies.

*/ inline bool GetVpcEndpointPolicySupported() const{ return m_vpcEndpointPolicySupported; } /** *

Indicates whether the service supports endpoint policies.

*/ inline bool VpcEndpointPolicySupportedHasBeenSet() const { return m_vpcEndpointPolicySupportedHasBeenSet; } /** *

Indicates whether the service supports endpoint policies.

*/ inline void SetVpcEndpointPolicySupported(bool value) { m_vpcEndpointPolicySupportedHasBeenSet = true; m_vpcEndpointPolicySupported = value; } /** *

Indicates whether the service supports endpoint policies.

*/ inline ServiceDetail& WithVpcEndpointPolicySupported(bool value) { SetVpcEndpointPolicySupported(value); return *this;} /** *

Indicates whether VPC endpoint connection requests to the service must be * accepted by the service owner.

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

Indicates whether VPC endpoint connection requests to the service must be * accepted by the service owner.

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

Indicates whether VPC endpoint connection requests to the service must be * accepted by the service owner.

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

Indicates whether VPC endpoint connection requests to the service must be * accepted by the service owner.

*/ inline ServiceDetail& 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 ServiceDetail& WithManagesVpcEndpoints(bool value) { SetManagesVpcEndpoints(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 ServiceDetail& WithPayerResponsibility(const PayerResponsibility& value) { SetPayerResponsibility(value); return *this;} /** *

The payer responsibility.

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

The tags assigned to the service.

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

The tags assigned to the service.

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

The tags assigned to the service.

*/ inline ServiceDetail& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The verification state of the VPC endpoint service.

Consumers of the * endpoint service cannot use the private name when the state is not * verified.

*/ inline const DnsNameState& GetPrivateDnsNameVerificationState() const{ return m_privateDnsNameVerificationState; } /** *

The verification state of the VPC endpoint service.

Consumers of the * endpoint service cannot use the private name when the state is not * verified.

*/ inline bool PrivateDnsNameVerificationStateHasBeenSet() const { return m_privateDnsNameVerificationStateHasBeenSet; } /** *

The verification state of the VPC endpoint service.

Consumers of the * endpoint service cannot use the private name when the state is not * verified.

*/ inline void SetPrivateDnsNameVerificationState(const DnsNameState& value) { m_privateDnsNameVerificationStateHasBeenSet = true; m_privateDnsNameVerificationState = value; } /** *

The verification state of the VPC endpoint service.

Consumers of the * endpoint service cannot use the private name when the state is not * verified.

*/ inline void SetPrivateDnsNameVerificationState(DnsNameState&& value) { m_privateDnsNameVerificationStateHasBeenSet = true; m_privateDnsNameVerificationState = std::move(value); } /** *

The verification state of the VPC endpoint service.

Consumers of the * endpoint service cannot use the private name when the state is not * verified.

*/ inline ServiceDetail& WithPrivateDnsNameVerificationState(const DnsNameState& value) { SetPrivateDnsNameVerificationState(value); return *this;} /** *

The verification state of the VPC endpoint service.

Consumers of the * endpoint service cannot use the private name when the state is not * verified.

*/ inline ServiceDetail& WithPrivateDnsNameVerificationState(DnsNameState&& value) { SetPrivateDnsNameVerificationState(std::move(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 ServiceDetail& WithSupportedIpAddressTypes(const Aws::Vector& value) { SetSupportedIpAddressTypes(value); return *this;} /** *

The supported IP address types.

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

The supported IP address types.

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

The supported IP address types.

*/ inline ServiceDetail& AddSupportedIpAddressTypes(ServiceConnectivityType&& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes.push_back(std::move(value)); return *this; } private: Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::String m_serviceId; bool m_serviceIdHasBeenSet = false; Aws::Vector m_serviceType; bool m_serviceTypeHasBeenSet = false; Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; Aws::String m_owner; bool m_ownerHasBeenSet = false; Aws::Vector m_baseEndpointDnsNames; bool m_baseEndpointDnsNamesHasBeenSet = false; Aws::String m_privateDnsName; bool m_privateDnsNameHasBeenSet = false; Aws::Vector m_privateDnsNames; bool m_privateDnsNamesHasBeenSet = false; bool m_vpcEndpointPolicySupported; bool m_vpcEndpointPolicySupportedHasBeenSet = false; bool m_acceptanceRequired; bool m_acceptanceRequiredHasBeenSet = false; bool m_managesVpcEndpoints; bool m_managesVpcEndpointsHasBeenSet = false; PayerResponsibility m_payerResponsibility; bool m_payerResponsibilityHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; DnsNameState m_privateDnsNameVerificationState; bool m_privateDnsNameVerificationStateHasBeenSet = false; Aws::Vector m_supportedIpAddressTypes; bool m_supportedIpAddressTypesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws