/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace VPCLattice { namespace Model { class CreateTargetGroupResult { public: AWS_VPCLATTICE_API CreateTargetGroupResult(); AWS_VPCLATTICE_API CreateTargetGroupResult(const Aws::AmazonWebServiceResult& result); AWS_VPCLATTICE_API CreateTargetGroupResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The target group configuration. If type is set to * LAMBDA, this parameter doesn't apply.

*/ inline const TargetGroupConfig& GetConfig() const{ return m_config; } /** *

The target group configuration. If type is set to * LAMBDA, this parameter doesn't apply.

*/ inline void SetConfig(const TargetGroupConfig& value) { m_config = value; } /** *

The target group configuration. If type is set to * LAMBDA, this parameter doesn't apply.

*/ inline void SetConfig(TargetGroupConfig&& value) { m_config = std::move(value); } /** *

The target group configuration. If type is set to * LAMBDA, this parameter doesn't apply.

*/ inline CreateTargetGroupResult& WithConfig(const TargetGroupConfig& value) { SetConfig(value); return *this;} /** *

The target group configuration. If type is set to * LAMBDA, this parameter doesn't apply.

*/ inline CreateTargetGroupResult& WithConfig(TargetGroupConfig&& value) { SetConfig(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 void SetId(const Aws::String& value) { m_id = value; } /** *

The ID of the target group.

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

The ID of the target group.

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

The ID of the target group.

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

The ID of the target group.

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

The ID of the target group.

*/ inline CreateTargetGroupResult& WithId(const char* value) { SetId(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 void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the target group.

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

The name of the target group.

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

The name of the target group.

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

The name of the target group.

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

The name of the target group.

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

The operation's status. You can retry the operation if the status is * CREATE_FAILED. However, if you retry it while the status is * CREATE_IN_PROGRESS, there is no change in the status.

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

The operation's status. You can retry the operation if the status is * CREATE_FAILED. However, if you retry it while the status is * CREATE_IN_PROGRESS, there is no change in the status.

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

The operation's status. You can retry the operation if the status is * CREATE_FAILED. However, if you retry it while the status is * CREATE_IN_PROGRESS, there is no change in the status.

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

The operation's status. You can retry the operation if the status is * CREATE_FAILED. However, if you retry it while the status is * CREATE_IN_PROGRESS, there is no change in the status.

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

The operation's status. You can retry the operation if the status is * CREATE_FAILED. However, if you retry it while the status is * CREATE_IN_PROGRESS, there is no change in the status.

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

The type of target group.

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

The type of target group.

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

The type of target group.

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

The type of target group.

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

The type of target group.

*/ inline CreateTargetGroupResult& WithType(TargetGroupType&& value) { SetType(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateTargetGroupResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateTargetGroupResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateTargetGroupResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; TargetGroupConfig m_config; Aws::String m_id; Aws::String m_name; TargetGroupStatus m_status; TargetGroupType m_type; Aws::String m_requestId; }; } // namespace Model } // namespace VPCLattice } // namespace Aws