/** * 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 SSM { namespace Model { class AWS_SSM_API DescribeDocumentPermissionResult { public: DescribeDocumentPermissionResult(); DescribeDocumentPermissionResult(const Aws::AmazonWebServiceResult& result); DescribeDocumentPermissionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The account IDs that have permission to use this document. The ID can be * either an AWS account or All.

*/ inline const Aws::Vector& GetAccountIds() const{ return m_accountIds; } /** *

The account IDs that have permission to use this document. The ID can be * either an AWS account or All.

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

The account IDs that have permission to use this document. The ID can be * either an AWS account or All.

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

The account IDs that have permission to use this document. The ID can be * either an AWS account or All.

*/ inline DescribeDocumentPermissionResult& WithAccountIds(const Aws::Vector& value) { SetAccountIds(value); return *this;} /** *

The account IDs that have permission to use this document. The ID can be * either an AWS account or All.

*/ inline DescribeDocumentPermissionResult& WithAccountIds(Aws::Vector&& value) { SetAccountIds(std::move(value)); return *this;} /** *

The account IDs that have permission to use this document. The ID can be * either an AWS account or All.

*/ inline DescribeDocumentPermissionResult& AddAccountIds(const Aws::String& value) { m_accountIds.push_back(value); return *this; } /** *

The account IDs that have permission to use this document. The ID can be * either an AWS account or All.

*/ inline DescribeDocumentPermissionResult& AddAccountIds(Aws::String&& value) { m_accountIds.push_back(std::move(value)); return *this; } /** *

The account IDs that have permission to use this document. The ID can be * either an AWS account or All.

*/ inline DescribeDocumentPermissionResult& AddAccountIds(const char* value) { m_accountIds.push_back(value); return *this; } /** *

A list of AWS accounts where the current document is shared and the version * shared with each account.

*/ inline const Aws::Vector& GetAccountSharingInfoList() const{ return m_accountSharingInfoList; } /** *

A list of AWS accounts where the current document is shared and the version * shared with each account.

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

A list of AWS accounts where the current document is shared and the version * shared with each account.

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

A list of AWS accounts where the current document is shared and the version * shared with each account.

*/ inline DescribeDocumentPermissionResult& WithAccountSharingInfoList(const Aws::Vector& value) { SetAccountSharingInfoList(value); return *this;} /** *

A list of AWS accounts where the current document is shared and the version * shared with each account.

*/ inline DescribeDocumentPermissionResult& WithAccountSharingInfoList(Aws::Vector&& value) { SetAccountSharingInfoList(std::move(value)); return *this;} /** *

A list of AWS accounts where the current document is shared and the version * shared with each account.

*/ inline DescribeDocumentPermissionResult& AddAccountSharingInfoList(const AccountSharingInfo& value) { m_accountSharingInfoList.push_back(value); return *this; } /** *

A list of AWS accounts where the current document is shared and the version * shared with each account.

*/ inline DescribeDocumentPermissionResult& AddAccountSharingInfoList(AccountSharingInfo&& value) { m_accountSharingInfoList.push_back(std::move(value)); return *this; } private: Aws::Vector m_accountIds; Aws::Vector m_accountSharingInfoList; }; } // namespace Model } // namespace SSM } // namespace Aws