/** * 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 namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Information about a load balancer.

See Also:

AWS * API Reference

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

The Availability Zones for the load balancer.

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

The Availability Zones for the load balancer.

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

The Availability Zones for the load balancer.

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

The Availability Zones for the load balancer.

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

The Availability Zones for the load balancer.

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

The Availability Zones for the load balancer.

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

The Availability Zones for the load balancer.

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

The Availability Zones for the load balancer.

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

The ID of the Amazon Route 53 hosted zone associated with the load * balancer.

*/ inline const Aws::String& GetCanonicalHostedZoneId() const{ return m_canonicalHostedZoneId; } /** *

The ID of the Amazon Route 53 hosted zone associated with the load * balancer.

*/ inline bool CanonicalHostedZoneIdHasBeenSet() const { return m_canonicalHostedZoneIdHasBeenSet; } /** *

The ID of the Amazon Route 53 hosted zone associated with the load * balancer.

*/ inline void SetCanonicalHostedZoneId(const Aws::String& value) { m_canonicalHostedZoneIdHasBeenSet = true; m_canonicalHostedZoneId = value; } /** *

The ID of the Amazon Route 53 hosted zone associated with the load * balancer.

*/ inline void SetCanonicalHostedZoneId(Aws::String&& value) { m_canonicalHostedZoneIdHasBeenSet = true; m_canonicalHostedZoneId = std::move(value); } /** *

The ID of the Amazon Route 53 hosted zone associated with the load * balancer.

*/ inline void SetCanonicalHostedZoneId(const char* value) { m_canonicalHostedZoneIdHasBeenSet = true; m_canonicalHostedZoneId.assign(value); } /** *

The ID of the Amazon Route 53 hosted zone associated with the load * balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithCanonicalHostedZoneId(const Aws::String& value) { SetCanonicalHostedZoneId(value); return *this;} /** *

The ID of the Amazon Route 53 hosted zone associated with the load * balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithCanonicalHostedZoneId(Aws::String&& value) { SetCanonicalHostedZoneId(std::move(value)); return *this;} /** *

The ID of the Amazon Route 53 hosted zone associated with the load * balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithCanonicalHostedZoneId(const char* value) { SetCanonicalHostedZoneId(value); return *this;} /** *

Indicates when the load balancer was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline const Aws::String& GetCreatedTime() const{ return m_createdTime; } /** *

Indicates when the load balancer was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *

Indicates when the load balancer was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreatedTime(const Aws::String& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *

Indicates when the load balancer was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreatedTime(Aws::String&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *

Indicates when the load balancer was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline void SetCreatedTime(const char* value) { m_createdTimeHasBeenSet = true; m_createdTime.assign(value); } /** *

Indicates when the load balancer was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsElbv2LoadBalancerDetails& WithCreatedTime(const Aws::String& value) { SetCreatedTime(value); return *this;} /** *

Indicates when the load balancer was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsElbv2LoadBalancerDetails& WithCreatedTime(Aws::String&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

Indicates when the load balancer was created.

Uses the * date-time format specified in RFC 3339 section 5.6, * Internet Date/Time Format. The value cannot contain spaces, and date and * time should be separated by T. For example, * 2020-03-22T13:22:13.933Z.

*/ inline AwsElbv2LoadBalancerDetails& WithCreatedTime(const char* value) { SetCreatedTime(value); return *this;} /** *

The public DNS name of the load balancer.

*/ inline const Aws::String& GetDNSName() const{ return m_dNSName; } /** *

The public DNS name of the load balancer.

*/ inline bool DNSNameHasBeenSet() const { return m_dNSNameHasBeenSet; } /** *

The public DNS name of the load balancer.

*/ inline void SetDNSName(const Aws::String& value) { m_dNSNameHasBeenSet = true; m_dNSName = value; } /** *

The public DNS name of the load balancer.

*/ inline void SetDNSName(Aws::String&& value) { m_dNSNameHasBeenSet = true; m_dNSName = std::move(value); } /** *

The public DNS name of the load balancer.

*/ inline void SetDNSName(const char* value) { m_dNSNameHasBeenSet = true; m_dNSName.assign(value); } /** *

The public DNS name of the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithDNSName(const Aws::String& value) { SetDNSName(value); return *this;} /** *

The public DNS name of the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithDNSName(Aws::String&& value) { SetDNSName(std::move(value)); return *this;} /** *

The public DNS name of the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithDNSName(const char* value) { SetDNSName(value); return *this;} /** *

The type of IP addresses used by the subnets for your load balancer. The * possible values are ipv4 (for IPv4 addresses) and * dualstack (for IPv4 and IPv6 addresses).

*/ inline const Aws::String& GetIpAddressType() const{ return m_ipAddressType; } /** *

The type of IP addresses used by the subnets for your load balancer. The * possible values are ipv4 (for IPv4 addresses) and * dualstack (for IPv4 and IPv6 addresses).

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

The type of IP addresses used by the subnets for your load balancer. The * possible values are ipv4 (for IPv4 addresses) and * dualstack (for IPv4 and IPv6 addresses).

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

The type of IP addresses used by the subnets for your load balancer. The * possible values are ipv4 (for IPv4 addresses) and * dualstack (for IPv4 and IPv6 addresses).

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

The type of IP addresses used by the subnets for your load balancer. The * possible values are ipv4 (for IPv4 addresses) and * dualstack (for IPv4 and IPv6 addresses).

*/ inline void SetIpAddressType(const char* value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType.assign(value); } /** *

The type of IP addresses used by the subnets for your load balancer. The * possible values are ipv4 (for IPv4 addresses) and * dualstack (for IPv4 and IPv6 addresses).

*/ inline AwsElbv2LoadBalancerDetails& WithIpAddressType(const Aws::String& value) { SetIpAddressType(value); return *this;} /** *

The type of IP addresses used by the subnets for your load balancer. The * possible values are ipv4 (for IPv4 addresses) and * dualstack (for IPv4 and IPv6 addresses).

*/ inline AwsElbv2LoadBalancerDetails& WithIpAddressType(Aws::String&& value) { SetIpAddressType(std::move(value)); return *this;} /** *

The type of IP addresses used by the subnets for your load balancer. The * possible values are ipv4 (for IPv4 addresses) and * dualstack (for IPv4 and IPv6 addresses).

*/ inline AwsElbv2LoadBalancerDetails& WithIpAddressType(const char* value) { SetIpAddressType(value); return *this;} /** *

The nodes of an Internet-facing load balancer have public IP addresses.

*/ inline const Aws::String& GetScheme() const{ return m_scheme; } /** *

The nodes of an Internet-facing load balancer have public IP addresses.

*/ inline bool SchemeHasBeenSet() const { return m_schemeHasBeenSet; } /** *

The nodes of an Internet-facing load balancer have public IP addresses.

*/ inline void SetScheme(const Aws::String& value) { m_schemeHasBeenSet = true; m_scheme = value; } /** *

The nodes of an Internet-facing load balancer have public IP addresses.

*/ inline void SetScheme(Aws::String&& value) { m_schemeHasBeenSet = true; m_scheme = std::move(value); } /** *

The nodes of an Internet-facing load balancer have public IP addresses.

*/ inline void SetScheme(const char* value) { m_schemeHasBeenSet = true; m_scheme.assign(value); } /** *

The nodes of an Internet-facing load balancer have public IP addresses.

*/ inline AwsElbv2LoadBalancerDetails& WithScheme(const Aws::String& value) { SetScheme(value); return *this;} /** *

The nodes of an Internet-facing load balancer have public IP addresses.

*/ inline AwsElbv2LoadBalancerDetails& WithScheme(Aws::String&& value) { SetScheme(std::move(value)); return *this;} /** *

The nodes of an Internet-facing load balancer have public IP addresses.

*/ inline AwsElbv2LoadBalancerDetails& WithScheme(const char* value) { SetScheme(value); return *this;} /** *

The IDs of the security groups for the load balancer.

*/ inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } /** *

The IDs of the security groups for the load balancer.

*/ inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; } /** *

The IDs of the security groups for the load balancer.

*/ inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; } /** *

The IDs of the security groups for the load balancer.

*/ inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); } /** *

The IDs of the security groups for the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

The IDs of the security groups for the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

The IDs of the security groups for the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

The IDs of the security groups for the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; } /** *

The IDs of the security groups for the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; } /** *

The state of the load balancer.

*/ inline const LoadBalancerState& GetState() const{ return m_state; } /** *

The state of the load balancer.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the load balancer.

*/ inline void SetState(const LoadBalancerState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the load balancer.

*/ inline void SetState(LoadBalancerState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithState(const LoadBalancerState& value) { SetState(value); return *this;} /** *

The state of the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithState(LoadBalancerState&& value) { SetState(std::move(value)); return *this;} /** *

The type of load balancer.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of load balancer.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of load balancer.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of load balancer.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of load balancer.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The type of load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The type of load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithType(const char* value) { SetType(value); return *this;} /** *

The ID of the VPC for the load balancer.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The ID of the VPC for the load balancer.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The ID of the VPC for the load balancer.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The ID of the VPC for the load balancer.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The ID of the VPC for the load balancer.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The ID of the VPC for the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The ID of the VPC for the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The ID of the VPC for the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

Attributes of the load balancer.

*/ inline const Aws::Vector& GetLoadBalancerAttributes() const{ return m_loadBalancerAttributes; } /** *

Attributes of the load balancer.

*/ inline bool LoadBalancerAttributesHasBeenSet() const { return m_loadBalancerAttributesHasBeenSet; } /** *

Attributes of the load balancer.

*/ inline void SetLoadBalancerAttributes(const Aws::Vector& value) { m_loadBalancerAttributesHasBeenSet = true; m_loadBalancerAttributes = value; } /** *

Attributes of the load balancer.

*/ inline void SetLoadBalancerAttributes(Aws::Vector&& value) { m_loadBalancerAttributesHasBeenSet = true; m_loadBalancerAttributes = std::move(value); } /** *

Attributes of the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithLoadBalancerAttributes(const Aws::Vector& value) { SetLoadBalancerAttributes(value); return *this;} /** *

Attributes of the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& WithLoadBalancerAttributes(Aws::Vector&& value) { SetLoadBalancerAttributes(std::move(value)); return *this;} /** *

Attributes of the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& AddLoadBalancerAttributes(const AwsElbv2LoadBalancerAttribute& value) { m_loadBalancerAttributesHasBeenSet = true; m_loadBalancerAttributes.push_back(value); return *this; } /** *

Attributes of the load balancer.

*/ inline AwsElbv2LoadBalancerDetails& AddLoadBalancerAttributes(AwsElbv2LoadBalancerAttribute&& value) { m_loadBalancerAttributesHasBeenSet = true; m_loadBalancerAttributes.push_back(std::move(value)); return *this; } private: Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; Aws::String m_canonicalHostedZoneId; bool m_canonicalHostedZoneIdHasBeenSet = false; Aws::String m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::String m_dNSName; bool m_dNSNameHasBeenSet = false; Aws::String m_ipAddressType; bool m_ipAddressTypeHasBeenSet = false; Aws::String m_scheme; bool m_schemeHasBeenSet = false; Aws::Vector m_securityGroups; bool m_securityGroupsHasBeenSet = false; LoadBalancerState m_state; bool m_stateHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; Aws::Vector m_loadBalancerAttributes; bool m_loadBalancerAttributesHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws