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

The package's ARN.

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

The package's ARN.

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

The package's ARN.

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

The package's ARN.

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

The package's ARN.

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

The package's ARN.

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

The package's ARN.

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

When the package was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *

When the package was created.

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

When the package was created.

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

When the package was created.

*/ inline DescribePackageResult& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

When the package was created.

*/ inline DescribePackageResult& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} /** *

The package's ID.

*/ inline const Aws::String& GetPackageId() const{ return m_packageId; } /** *

The package's ID.

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

The package's ID.

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

The package's ID.

*/ inline void SetPackageId(const char* value) { m_packageId.assign(value); } /** *

The package's ID.

*/ inline DescribePackageResult& WithPackageId(const Aws::String& value) { SetPackageId(value); return *this;} /** *

The package's ID.

*/ inline DescribePackageResult& WithPackageId(Aws::String&& value) { SetPackageId(std::move(value)); return *this;} /** *

The package's ID.

*/ inline DescribePackageResult& WithPackageId(const char* value) { SetPackageId(value); return *this;} /** *

The package's name.

*/ inline const Aws::String& GetPackageName() const{ return m_packageName; } /** *

The package's name.

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

The package's name.

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

The package's name.

*/ inline void SetPackageName(const char* value) { m_packageName.assign(value); } /** *

The package's name.

*/ inline DescribePackageResult& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;} /** *

The package's name.

*/ inline DescribePackageResult& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;} /** *

The package's name.

*/ inline DescribePackageResult& WithPackageName(const char* value) { SetPackageName(value); return *this;} /** *

ARNs of accounts that have read access to the package.

*/ inline const Aws::Vector& GetReadAccessPrincipalArns() const{ return m_readAccessPrincipalArns; } /** *

ARNs of accounts that have read access to the package.

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

ARNs of accounts that have read access to the package.

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

ARNs of accounts that have read access to the package.

*/ inline DescribePackageResult& WithReadAccessPrincipalArns(const Aws::Vector& value) { SetReadAccessPrincipalArns(value); return *this;} /** *

ARNs of accounts that have read access to the package.

*/ inline DescribePackageResult& WithReadAccessPrincipalArns(Aws::Vector&& value) { SetReadAccessPrincipalArns(std::move(value)); return *this;} /** *

ARNs of accounts that have read access to the package.

*/ inline DescribePackageResult& AddReadAccessPrincipalArns(const Aws::String& value) { m_readAccessPrincipalArns.push_back(value); return *this; } /** *

ARNs of accounts that have read access to the package.

*/ inline DescribePackageResult& AddReadAccessPrincipalArns(Aws::String&& value) { m_readAccessPrincipalArns.push_back(std::move(value)); return *this; } /** *

ARNs of accounts that have read access to the package.

*/ inline DescribePackageResult& AddReadAccessPrincipalArns(const char* value) { m_readAccessPrincipalArns.push_back(value); return *this; } /** *

The package's storage location.

*/ inline const StorageLocation& GetStorageLocation() const{ return m_storageLocation; } /** *

The package's storage location.

*/ inline void SetStorageLocation(const StorageLocation& value) { m_storageLocation = value; } /** *

The package's storage location.

*/ inline void SetStorageLocation(StorageLocation&& value) { m_storageLocation = std::move(value); } /** *

The package's storage location.

*/ inline DescribePackageResult& WithStorageLocation(const StorageLocation& value) { SetStorageLocation(value); return *this;} /** *

The package's storage location.

*/ inline DescribePackageResult& WithStorageLocation(StorageLocation&& value) { SetStorageLocation(std::move(value)); return *this;} /** *

The package's tags.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The package's tags.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

The package's tags.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

The package's tags.

*/ inline DescribePackageResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The package's tags.

*/ inline DescribePackageResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The package's tags.

*/ inline DescribePackageResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

The package's tags.

*/ inline DescribePackageResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The package's tags.

*/ inline DescribePackageResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The package's tags.

*/ inline DescribePackageResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The package's tags.

*/ inline DescribePackageResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

The package's tags.

*/ inline DescribePackageResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

The package's tags.

*/ inline DescribePackageResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } /** *

ARNs of accounts that have write access to the package.

*/ inline const Aws::Vector& GetWriteAccessPrincipalArns() const{ return m_writeAccessPrincipalArns; } /** *

ARNs of accounts that have write access to the package.

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

ARNs of accounts that have write access to the package.

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

ARNs of accounts that have write access to the package.

*/ inline DescribePackageResult& WithWriteAccessPrincipalArns(const Aws::Vector& value) { SetWriteAccessPrincipalArns(value); return *this;} /** *

ARNs of accounts that have write access to the package.

*/ inline DescribePackageResult& WithWriteAccessPrincipalArns(Aws::Vector&& value) { SetWriteAccessPrincipalArns(std::move(value)); return *this;} /** *

ARNs of accounts that have write access to the package.

*/ inline DescribePackageResult& AddWriteAccessPrincipalArns(const Aws::String& value) { m_writeAccessPrincipalArns.push_back(value); return *this; } /** *

ARNs of accounts that have write access to the package.

*/ inline DescribePackageResult& AddWriteAccessPrincipalArns(Aws::String&& value) { m_writeAccessPrincipalArns.push_back(std::move(value)); return *this; } /** *

ARNs of accounts that have write access to the package.

*/ inline DescribePackageResult& AddWriteAccessPrincipalArns(const char* value) { m_writeAccessPrincipalArns.push_back(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 DescribePackageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribePackageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribePackageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::Utils::DateTime m_createdTime; Aws::String m_packageId; Aws::String m_packageName; Aws::Vector m_readAccessPrincipalArns; StorageLocation m_storageLocation; Aws::Map m_tags; Aws::Vector m_writeAccessPrincipalArns; Aws::String m_requestId; }; } // namespace Model } // namespace Panorama } // namespace Aws