/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace VPCLattice { namespace Model { class CreateServiceNetworkVpcAssociationResult { public: AWS_VPCLATTICE_API CreateServiceNetworkVpcAssociationResult(); AWS_VPCLATTICE_API CreateServiceNetworkVpcAssociationResult(const Aws::AmazonWebServiceResult& result); AWS_VPCLATTICE_API CreateServiceNetworkVpcAssociationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

The account that created the association.

*/ inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } /** *

The account that created the association.

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

The account that created the association.

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

The account that created the association.

*/ inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); } /** *

The account that created the association.

*/ inline CreateServiceNetworkVpcAssociationResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} /** *

The account that created the association.

*/ inline CreateServiceNetworkVpcAssociationResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} /** *

The account that created the association.

*/ inline CreateServiceNetworkVpcAssociationResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;} /** *

The ID of the association.

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

The ID of the association.

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

The ID of the association.

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

The ID of the association.

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

The ID of the association.

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

The ID of the association.

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

The ID of the association.

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

The IDs of the security groups.

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

The IDs of the security groups.

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIds = value; } /** *

The IDs of the security groups.

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIds = std::move(value); } /** *

The IDs of the security groups.

*/ inline CreateServiceNetworkVpcAssociationResult& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

The IDs of the security groups.

*/ inline CreateServiceNetworkVpcAssociationResult& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

The IDs of the security groups.

*/ inline CreateServiceNetworkVpcAssociationResult& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIds.push_back(value); return *this; } /** *

The IDs of the security groups.

*/ inline CreateServiceNetworkVpcAssociationResult& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

The IDs of the security groups.

*/ inline CreateServiceNetworkVpcAssociationResult& AddSecurityGroupIds(const char* value) { m_securityGroupIds.push_back(value); return *this; } /** *

The operation's status.

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

The operation's status.

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

The operation's status.

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

The operation's status.

*/ inline CreateServiceNetworkVpcAssociationResult& WithStatus(const ServiceNetworkVpcAssociationStatus& value) { SetStatus(value); return *this;} /** *

The operation's status.

*/ inline CreateServiceNetworkVpcAssociationResult& WithStatus(ServiceNetworkVpcAssociationStatus&& value) { SetStatus(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 CreateServiceNetworkVpcAssociationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateServiceNetworkVpcAssociationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateServiceNetworkVpcAssociationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::String m_createdBy; Aws::String m_id; Aws::Vector m_securityGroupIds; ServiceNetworkVpcAssociationStatus m_status; Aws::String m_requestId; }; } // namespace Model } // namespace VPCLattice } // namespace Aws