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

Summary information about a target group.

See Also:

AWS * API Reference

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

The ARN (Amazon Resource Name) of the target group.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN (Amazon Resource Name) of the target group.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN (Amazon Resource Name) of the target group.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN (Amazon Resource Name) of the target group.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN (Amazon Resource Name) of the target group.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN (Amazon Resource Name) of the target group.

*/ inline TargetGroupSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN (Amazon Resource Name) of the target group.

*/ inline TargetGroupSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN (Amazon Resource Name) of the target group.

*/ inline TargetGroupSummary& WithArn(const char* value) { SetArn(value); return *this;} /** *

The date and time that the target group was created, specified in ISO-8601 * format.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The date and time that the target group was created, specified in ISO-8601 * format.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The date and time that the target group was created, specified in ISO-8601 * format.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The date and time that the target group was created, specified in ISO-8601 * format.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The date and time that the target group was created, specified in ISO-8601 * format.

*/ inline TargetGroupSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date and time that the target group was created, specified in ISO-8601 * format.

*/ inline TargetGroupSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The ID of the target group.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the target group.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the target group.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the target group.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the target group.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the target group.

*/ inline TargetGroupSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the target group.

*/ inline TargetGroupSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the target group.

*/ inline TargetGroupSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The type of IP address used for the target group. The possible values are * ipv4 and ipv6. This is an optional parameter. If not * specified, the IP address type defaults to ipv4.

*/ inline const IpAddressType& GetIpAddressType() const{ return m_ipAddressType; } /** *

The type of IP address used for the target group. The possible values are * ipv4 and ipv6. This is an optional parameter. If not * specified, the IP address type defaults to ipv4.

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

The type of IP address used for the target group. The possible values are * ipv4 and ipv6. This is an optional parameter. If not * specified, the IP address type defaults to ipv4.

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

The type of IP address used for the target group. The possible values are * ipv4 and ipv6. This is an optional parameter. If not * specified, the IP address type defaults to ipv4.

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

The type of IP address used for the target group. The possible values are * ipv4 and ipv6. This is an optional parameter. If not * specified, the IP address type defaults to ipv4.

*/ inline TargetGroupSummary& WithIpAddressType(const IpAddressType& value) { SetIpAddressType(value); return *this;} /** *

The type of IP address used for the target group. The possible values are * ipv4 and ipv6. This is an optional parameter. If not * specified, the IP address type defaults to ipv4.

*/ inline TargetGroupSummary& WithIpAddressType(IpAddressType&& value) { SetIpAddressType(std::move(value)); return *this;} /** *

The date and time that the target group was last updated, specified in * ISO-8601 format.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The date and time that the target group was last updated, specified in * ISO-8601 format.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

The date and time that the target group was last updated, specified in * ISO-8601 format.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

The date and time that the target group was last updated, specified in * ISO-8601 format.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

The date and time that the target group was last updated, specified in * ISO-8601 format.

*/ inline TargetGroupSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The date and time that the target group was last updated, specified in * ISO-8601 format.

*/ inline TargetGroupSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

The name of the target group.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the target group.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the target group.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the target group.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the target group.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the target group.

*/ inline TargetGroupSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the target group.

*/ inline TargetGroupSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the target group.

*/ inline TargetGroupSummary& WithName(const char* value) { SetName(value); return *this;} /** *

The port of the target group.

*/ inline int GetPort() const{ return m_port; } /** *

The port of the target group.

*/ inline bool PortHasBeenSet() const { return m_portHasBeenSet; } /** *

The port of the target group.

*/ inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; } /** *

The port of the target group.

*/ inline TargetGroupSummary& WithPort(int value) { SetPort(value); return *this;} /** *

The protocol of the target group.

*/ inline const TargetGroupProtocol& GetProtocol() const{ return m_protocol; } /** *

The protocol of the target group.

*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *

The protocol of the target group.

*/ inline void SetProtocol(const TargetGroupProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *

The protocol of the target group.

*/ inline void SetProtocol(TargetGroupProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *

The protocol of the target group.

*/ inline TargetGroupSummary& WithProtocol(const TargetGroupProtocol& value) { SetProtocol(value); return *this;} /** *

The protocol of the target group.

*/ inline TargetGroupSummary& WithProtocol(TargetGroupProtocol&& value) { SetProtocol(std::move(value)); return *this;} /** *

The list of Amazon Resource Names (ARNs) of the service.

*/ inline const Aws::Vector& GetServiceArns() const{ return m_serviceArns; } /** *

The list of Amazon Resource Names (ARNs) of the service.

*/ inline bool ServiceArnsHasBeenSet() const { return m_serviceArnsHasBeenSet; } /** *

The list of Amazon Resource Names (ARNs) of the service.

*/ inline void SetServiceArns(const Aws::Vector& value) { m_serviceArnsHasBeenSet = true; m_serviceArns = value; } /** *

The list of Amazon Resource Names (ARNs) of the service.

*/ inline void SetServiceArns(Aws::Vector&& value) { m_serviceArnsHasBeenSet = true; m_serviceArns = std::move(value); } /** *

The list of Amazon Resource Names (ARNs) of the service.

*/ inline TargetGroupSummary& WithServiceArns(const Aws::Vector& value) { SetServiceArns(value); return *this;} /** *

The list of Amazon Resource Names (ARNs) of the service.

*/ inline TargetGroupSummary& WithServiceArns(Aws::Vector&& value) { SetServiceArns(std::move(value)); return *this;} /** *

The list of Amazon Resource Names (ARNs) of the service.

*/ inline TargetGroupSummary& AddServiceArns(const Aws::String& value) { m_serviceArnsHasBeenSet = true; m_serviceArns.push_back(value); return *this; } /** *

The list of Amazon Resource Names (ARNs) of the service.

*/ inline TargetGroupSummary& AddServiceArns(Aws::String&& value) { m_serviceArnsHasBeenSet = true; m_serviceArns.push_back(std::move(value)); return *this; } /** *

The list of Amazon Resource Names (ARNs) of the service.

*/ inline TargetGroupSummary& AddServiceArns(const char* value) { m_serviceArnsHasBeenSet = true; m_serviceArns.push_back(value); return *this; } /** *

The status.

*/ inline const TargetGroupStatus& GetStatus() const{ return m_status; } /** *

The status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status.

*/ inline void SetStatus(const TargetGroupStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status.

*/ inline void SetStatus(TargetGroupStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status.

*/ inline TargetGroupSummary& WithStatus(const TargetGroupStatus& value) { SetStatus(value); return *this;} /** *

The status.

*/ inline TargetGroupSummary& WithStatus(TargetGroupStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The target group type.

*/ inline const TargetGroupType& GetType() const{ return m_type; } /** *

The target group type.

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

The target group type.

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

The target group type.

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

The target group type.

*/ inline TargetGroupSummary& WithType(const TargetGroupType& value) { SetType(value); return *this;} /** *

The target group type.

*/ inline TargetGroupSummary& WithType(TargetGroupType&& value) { SetType(std::move(value)); return *this;} /** *

The ID of the VPC of the target group.

*/ inline const Aws::String& GetVpcIdentifier() const{ return m_vpcIdentifier; } /** *

The ID of the VPC of the target group.

*/ inline bool VpcIdentifierHasBeenSet() const { return m_vpcIdentifierHasBeenSet; } /** *

The ID of the VPC of the target group.

*/ inline void SetVpcIdentifier(const Aws::String& value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier = value; } /** *

The ID of the VPC of the target group.

*/ inline void SetVpcIdentifier(Aws::String&& value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier = std::move(value); } /** *

The ID of the VPC of the target group.

*/ inline void SetVpcIdentifier(const char* value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier.assign(value); } /** *

The ID of the VPC of the target group.

*/ inline TargetGroupSummary& WithVpcIdentifier(const Aws::String& value) { SetVpcIdentifier(value); return *this;} /** *

The ID of the VPC of the target group.

*/ inline TargetGroupSummary& WithVpcIdentifier(Aws::String&& value) { SetVpcIdentifier(std::move(value)); return *this;} /** *

The ID of the VPC of the target group.

*/ inline TargetGroupSummary& WithVpcIdentifier(const char* value) { SetVpcIdentifier(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; IpAddressType m_ipAddressType; bool m_ipAddressTypeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; int m_port; bool m_portHasBeenSet = false; TargetGroupProtocol m_protocol; bool m_protocolHasBeenSet = false; Aws::Vector m_serviceArns; bool m_serviceArnsHasBeenSet = false; TargetGroupStatus m_status; bool m_statusHasBeenSet = false; TargetGroupType m_type; bool m_typeHasBeenSet = false; Aws::String m_vpcIdentifier; bool m_vpcIdentifierHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws