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

The account IDs that have permission to use this document. The ID can be * either an Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services account or All.

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

A list of Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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 Amazon Web Services 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; } /** *

The token for the next set of items to return. Use this token to get the next * set of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token for the next set of items to return. Use this token to get the next * set of results.

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

The token for the next set of items to return. Use this token to get the next * set of results.

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

The token for the next set of items to return. Use this token to get the next * set of results.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The token for the next set of items to return. Use this token to get the next * set of results.

*/ inline DescribeDocumentPermissionResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token for the next set of items to return. Use this token to get the next * set of results.

*/ inline DescribeDocumentPermissionResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token for the next set of items to return. Use this token to get the next * set of results.

*/ inline DescribeDocumentPermissionResult& WithNextToken(const char* value) { SetNextToken(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 DescribeDocumentPermissionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeDocumentPermissionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeDocumentPermissionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_accountIds; Aws::Vector m_accountSharingInfoList; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace SSM } // namespace Aws