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

Contains details about the service configuration for a VPC endpoint * service.

See Also:

AWS * API Reference

*/ class AwsEc2VpcEndpointServiceDetails { public: AWS_SECURITYHUB_API AwsEc2VpcEndpointServiceDetails(); AWS_SECURITYHUB_API AwsEc2VpcEndpointServiceDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEc2VpcEndpointServiceDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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; } /** *

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; } /** *

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; } /** *

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

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

The Availability Zones where the service is available.

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

The Availability Zones where the service is available.

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

The Availability Zones where the service is available.

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

The Availability Zones where the service is available.

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

The Availability Zones where the service is available.

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

The Availability Zones where the service is available.

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

The Availability Zones where the service is available.

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

The Availability Zones where the service is available.

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

The Availability Zones where the service is available.

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

The DNS names for the service.

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

The DNS names for the service.

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

The DNS names for the service.

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

The DNS names for the service.

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

Whether the service manages its VPC endpoints.

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

Whether the service manages its VPC endpoints.

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

Whether the service manages its VPC endpoints.

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

Whether the service manages its VPC endpoints.

*/ inline AwsEc2VpcEndpointServiceDetails& WithManagesVpcEndpoints(bool value) { SetManagesVpcEndpoints(value); return *this;} /** *

The ARNs of the Gateway Load Balancers for the service.

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

The ARNs of the Gateway Load Balancers for the service.

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

The ARNs of the Gateway Load Balancers for the service.

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

The ARNs of the Gateway Load Balancers for the service.

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

The ARNs of the Gateway Load Balancers for the service.

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

The ARNs of the Gateway Load Balancers for the service.

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

The ARNs of the Gateway Load Balancers for the service.

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

The ARNs of the Gateway Load Balancers for the service.

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

The ARNs of the Gateway Load Balancers for the service.

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

The ARNs of the Network Load Balancers for the service.

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

The ARNs of the Network Load Balancers for the service.

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

The ARNs of the Network Load Balancers for the service.

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

The ARNs of the Network Load Balancers for the service.

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

The ARNs of the Network Load Balancers for the service.

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

The ARNs of the Network Load Balancers for the service.

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

The ARNs of the Network Load Balancers for the service.

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

The ARNs of the Network Load Balancers for the service.

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

The ARNs of the Network Load Balancers for the service.

*/ inline AwsEc2VpcEndpointServiceDetails& AddNetworkLoadBalancerArns(const char* value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns.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 AwsEc2VpcEndpointServiceDetails& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;} /** *

The private DNS name for the service.

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

The private DNS name for the service.

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

The identifier of the service.

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

The identifier of the service.

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

The identifier of the service.

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

The identifier of the service.

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

The identifier of the service.

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

The identifier of the service.

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

The identifier of the service.

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

The identifier of the service.

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

The name of the service.

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

The name of the service.

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

The current state of the service. Valid values are as follows:

  • *

    Available

  • Deleted

  • *
  • Deleting

  • Failed

    *
  • Pending

*/ inline const Aws::String& GetServiceState() const{ return m_serviceState; } /** *

The current state of the service. Valid values are as follows:

  • *

    Available

  • Deleted

  • *
  • Deleting

  • Failed

    *
  • Pending

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

The current state of the service. Valid values are as follows:

  • *

    Available

  • Deleted

  • *
  • Deleting

  • Failed

    *
  • Pending

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

The current state of the service. Valid values are as follows:

  • *

    Available

  • Deleted

  • *
  • Deleting

  • Failed

    *
  • Pending

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

The current state of the service. Valid values are as follows:

  • *

    Available

  • Deleted

  • *
  • Deleting

  • Failed

    *
  • Pending

*/ inline void SetServiceState(const char* value) { m_serviceStateHasBeenSet = true; m_serviceState.assign(value); } /** *

The current state of the service. Valid values are as follows:

  • *

    Available

  • Deleted

  • *
  • Deleting

  • Failed

    *
  • Pending

*/ inline AwsEc2VpcEndpointServiceDetails& WithServiceState(const Aws::String& value) { SetServiceState(value); return *this;} /** *

The current state of the service. Valid values are as follows:

  • *

    Available

  • Deleted

  • *
  • Deleting

  • Failed

    *
  • Pending

*/ inline AwsEc2VpcEndpointServiceDetails& WithServiceState(Aws::String&& value) { SetServiceState(std::move(value)); return *this;} /** *

The current state of the service. Valid values are as follows:

  • *

    Available

  • Deleted

  • *
  • Deleting

  • Failed

    *
  • Pending

*/ inline AwsEc2VpcEndpointServiceDetails& WithServiceState(const char* value) { SetServiceState(value); return *this;} /** *

The types for the service.

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

The types for the service.

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

The types for the service.

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

The types for the service.

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

The types for the service.

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

The types for the service.

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

The types for the service.

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

The types for the service.

*/ inline AwsEc2VpcEndpointServiceDetails& AddServiceType(AwsEc2VpcEndpointServiceServiceTypeDetails&& value) { m_serviceTypeHasBeenSet = true; m_serviceType.push_back(std::move(value)); return *this; } private: bool m_acceptanceRequired; bool m_acceptanceRequiredHasBeenSet = false; Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; Aws::Vector m_baseEndpointDnsNames; bool m_baseEndpointDnsNamesHasBeenSet = false; bool m_managesVpcEndpoints; bool m_managesVpcEndpointsHasBeenSet = false; Aws::Vector m_gatewayLoadBalancerArns; bool m_gatewayLoadBalancerArnsHasBeenSet = false; Aws::Vector m_networkLoadBalancerArns; bool m_networkLoadBalancerArnsHasBeenSet = false; Aws::String m_privateDnsName; bool m_privateDnsNameHasBeenSet = false; Aws::String m_serviceId; bool m_serviceIdHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::String m_serviceState; bool m_serviceStateHasBeenSet = false; Aws::Vector m_serviceType; bool m_serviceTypeHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws