/** * 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 GetServiceNetworkVpcAssociationResult { public: AWS_VPCLATTICE_API GetServiceNetworkVpcAssociationResult(); AWS_VPCLATTICE_API GetServiceNetworkVpcAssociationResult(const Aws::AmazonWebServiceResult& result); AWS_VPCLATTICE_API GetServiceNetworkVpcAssociationResult& 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 GetServiceNetworkVpcAssociationResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

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

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

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

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

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

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

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

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

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

*/ inline GetServiceNetworkVpcAssociationResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(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 GetServiceNetworkVpcAssociationResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} /** *

The account that created the association.

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

The account that created the association.

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

The failure code.

*/ inline const Aws::String& GetFailureCode() const{ return m_failureCode; } /** *

The failure code.

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

The failure code.

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

The failure code.

*/ inline void SetFailureCode(const char* value) { m_failureCode.assign(value); } /** *

The failure code.

*/ inline GetServiceNetworkVpcAssociationResult& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;} /** *

The failure code.

*/ inline GetServiceNetworkVpcAssociationResult& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;} /** *

The failure code.

*/ inline GetServiceNetworkVpcAssociationResult& WithFailureCode(const char* value) { SetFailureCode(value); return *this;} /** *

The failure message.

*/ inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; } /** *

The failure message.

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

The failure message.

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

The failure message.

*/ inline void SetFailureMessage(const char* value) { m_failureMessage.assign(value); } /** *

The failure message.

*/ inline GetServiceNetworkVpcAssociationResult& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;} /** *

The failure message.

*/ inline GetServiceNetworkVpcAssociationResult& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;} /** *

The failure message.

*/ inline GetServiceNetworkVpcAssociationResult& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;} /** *

The ID of the specified association between the service network and the * VPC.

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

The ID of the specified association between the service network and the * VPC.

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

The ID of the specified association between the service network and the * VPC.

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

The ID of the specified association between the service network and the * VPC.

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

The ID of the specified association between the service network and the * VPC.

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

The ID of the specified association between the service network and the * VPC.

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

The ID of the specified association between the service network and the * VPC.

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

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

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

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

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

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

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

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

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

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

*/ inline GetServiceNetworkVpcAssociationResult& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(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 GetServiceNetworkVpcAssociationResult& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

The IDs of the security groups.

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

The IDs of the security groups.

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

The IDs of the security groups.

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

The IDs of the security groups.

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

The Amazon Resource Name (ARN) of the service network.

*/ inline const Aws::String& GetServiceNetworkArn() const{ return m_serviceNetworkArn; } /** *

The Amazon Resource Name (ARN) of the service network.

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

The Amazon Resource Name (ARN) of the service network.

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

The Amazon Resource Name (ARN) of the service network.

*/ inline void SetServiceNetworkArn(const char* value) { m_serviceNetworkArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the service network.

*/ inline GetServiceNetworkVpcAssociationResult& WithServiceNetworkArn(const Aws::String& value) { SetServiceNetworkArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the service network.

*/ inline GetServiceNetworkVpcAssociationResult& WithServiceNetworkArn(Aws::String&& value) { SetServiceNetworkArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the service network.

*/ inline GetServiceNetworkVpcAssociationResult& WithServiceNetworkArn(const char* value) { SetServiceNetworkArn(value); return *this;} /** *

The ID of the service network.

*/ inline const Aws::String& GetServiceNetworkId() const{ return m_serviceNetworkId; } /** *

The ID of the service network.

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

The ID of the service network.

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

The ID of the service network.

*/ inline void SetServiceNetworkId(const char* value) { m_serviceNetworkId.assign(value); } /** *

The ID of the service network.

*/ inline GetServiceNetworkVpcAssociationResult& WithServiceNetworkId(const Aws::String& value) { SetServiceNetworkId(value); return *this;} /** *

The ID of the service network.

*/ inline GetServiceNetworkVpcAssociationResult& WithServiceNetworkId(Aws::String&& value) { SetServiceNetworkId(std::move(value)); return *this;} /** *

The ID of the service network.

*/ inline GetServiceNetworkVpcAssociationResult& WithServiceNetworkId(const char* value) { SetServiceNetworkId(value); return *this;} /** *

The name of the service network.

*/ inline const Aws::String& GetServiceNetworkName() const{ return m_serviceNetworkName; } /** *

The name of the service network.

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

The name of the service network.

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

The name of the service network.

*/ inline void SetServiceNetworkName(const char* value) { m_serviceNetworkName.assign(value); } /** *

The name of the service network.

*/ inline GetServiceNetworkVpcAssociationResult& WithServiceNetworkName(const Aws::String& value) { SetServiceNetworkName(value); return *this;} /** *

The name of the service network.

*/ inline GetServiceNetworkVpcAssociationResult& WithServiceNetworkName(Aws::String&& value) { SetServiceNetworkName(std::move(value)); return *this;} /** *

The name of the service network.

*/ inline GetServiceNetworkVpcAssociationResult& WithServiceNetworkName(const char* value) { SetServiceNetworkName(value); return *this;} /** *

The status of the association.

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

The status of the association.

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

The status of the association.

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

The status of the association.

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

The status of the association.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

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

The ID of the VPC.

*/ inline GetServiceNetworkVpcAssociationResult& WithVpcId(const char* value) { SetVpcId(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 GetServiceNetworkVpcAssociationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetServiceNetworkVpcAssociationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetServiceNetworkVpcAssociationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::Utils::DateTime m_createdAt; Aws::String m_createdBy; Aws::String m_failureCode; Aws::String m_failureMessage; Aws::String m_id; Aws::Utils::DateTime m_lastUpdatedAt; Aws::Vector m_securityGroupIds; Aws::String m_serviceNetworkArn; Aws::String m_serviceNetworkId; Aws::String m_serviceNetworkName; ServiceNetworkVpcAssociationStatus m_status; Aws::String m_vpcId; Aws::String m_requestId; }; } // namespace Model } // namespace VPCLattice } // namespace Aws