/** * 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 GetServiceNetworkResult { public: AWS_VPCLATTICE_API GetServiceNetworkResult(); AWS_VPCLATTICE_API GetServiceNetworkResult(const Aws::AmazonWebServiceResult& result); AWS_VPCLATTICE_API GetServiceNetworkResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The type of IAM policy.

*/ inline const AuthType& GetAuthType() const{ return m_authType; } /** *

The type of IAM policy.

*/ inline void SetAuthType(const AuthType& value) { m_authType = value; } /** *

The type of IAM policy.

*/ inline void SetAuthType(AuthType&& value) { m_authType = std::move(value); } /** *

The type of IAM policy.

*/ inline GetServiceNetworkResult& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;} /** *

The type of IAM policy.

*/ inline GetServiceNetworkResult& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;} /** *

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

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

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

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

The date and time that the service network 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 service network was created, specified in ISO-8601 * format.

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

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

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

The ID of the service network.

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

The ID of the service network.

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

The ID of the service network.

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

The ID of the service network.

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

The ID of the service network.

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

The ID of the service network.

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

The ID of the service network.

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

The date and time of the last update, specified in ISO-8601 format.

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

The date and time of the last update, specified in ISO-8601 format.

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

The date and time of the last update, specified in ISO-8601 format.

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

The date and time of the last update, specified in ISO-8601 format.

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

The date and time of the last update, specified in ISO-8601 format.

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

The name of the service network.

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

The name of the service network.

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

The name of the service network.

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

The name of the service network.

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

The name of the service network.

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

The name of the service network.

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

The name of the service network.

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

The number of services associated with the service network.

*/ inline long long GetNumberOfAssociatedServices() const{ return m_numberOfAssociatedServices; } /** *

The number of services associated with the service network.

*/ inline void SetNumberOfAssociatedServices(long long value) { m_numberOfAssociatedServices = value; } /** *

The number of services associated with the service network.

*/ inline GetServiceNetworkResult& WithNumberOfAssociatedServices(long long value) { SetNumberOfAssociatedServices(value); return *this;} /** *

The number of VPCs associated with the service network.

*/ inline long long GetNumberOfAssociatedVPCs() const{ return m_numberOfAssociatedVPCs; } /** *

The number of VPCs associated with the service network.

*/ inline void SetNumberOfAssociatedVPCs(long long value) { m_numberOfAssociatedVPCs = value; } /** *

The number of VPCs associated with the service network.

*/ inline GetServiceNetworkResult& WithNumberOfAssociatedVPCs(long long value) { SetNumberOfAssociatedVPCs(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 GetServiceNetworkResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetServiceNetworkResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetServiceNetworkResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; AuthType m_authType; Aws::Utils::DateTime m_createdAt; Aws::String m_id; Aws::Utils::DateTime m_lastUpdatedAt; Aws::String m_name; long long m_numberOfAssociatedServices; long long m_numberOfAssociatedVPCs; Aws::String m_requestId; }; } // namespace Model } // namespace VPCLattice } // namespace Aws