138 lines
5.1 KiB
C++
138 lines
5.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ssm/SSM_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/ssm/model/AccountSharingInfo.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
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<Aws::Utils::Json::JsonValue>& result);
|
|
DescribeDocumentPermissionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>The account IDs that have permission to use this document. The ID can be
|
|
* either an AWS account or <i>All</i>.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetAccountIds() const{ return m_accountIds; }
|
|
|
|
/**
|
|
* <p>The account IDs that have permission to use this document. The ID can be
|
|
* either an AWS account or <i>All</i>.</p>
|
|
*/
|
|
inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIds = value; }
|
|
|
|
/**
|
|
* <p>The account IDs that have permission to use this document. The ID can be
|
|
* either an AWS account or <i>All</i>.</p>
|
|
*/
|
|
inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIds = std::move(value); }
|
|
|
|
/**
|
|
* <p>The account IDs that have permission to use this document. The ID can be
|
|
* either an AWS account or <i>All</i>.</p>
|
|
*/
|
|
inline DescribeDocumentPermissionResult& WithAccountIds(const Aws::Vector<Aws::String>& value) { SetAccountIds(value); return *this;}
|
|
|
|
/**
|
|
* <p>The account IDs that have permission to use this document. The ID can be
|
|
* either an AWS account or <i>All</i>.</p>
|
|
*/
|
|
inline DescribeDocumentPermissionResult& WithAccountIds(Aws::Vector<Aws::String>&& value) { SetAccountIds(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The account IDs that have permission to use this document. The ID can be
|
|
* either an AWS account or <i>All</i>.</p>
|
|
*/
|
|
inline DescribeDocumentPermissionResult& AddAccountIds(const Aws::String& value) { m_accountIds.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The account IDs that have permission to use this document. The ID can be
|
|
* either an AWS account or <i>All</i>.</p>
|
|
*/
|
|
inline DescribeDocumentPermissionResult& AddAccountIds(Aws::String&& value) { m_accountIds.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The account IDs that have permission to use this document. The ID can be
|
|
* either an AWS account or <i>All</i>.</p>
|
|
*/
|
|
inline DescribeDocumentPermissionResult& AddAccountIds(const char* value) { m_accountIds.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>A list of AWS accounts where the current document is shared and the version
|
|
* shared with each account.</p>
|
|
*/
|
|
inline const Aws::Vector<AccountSharingInfo>& GetAccountSharingInfoList() const{ return m_accountSharingInfoList; }
|
|
|
|
/**
|
|
* <p>A list of AWS accounts where the current document is shared and the version
|
|
* shared with each account.</p>
|
|
*/
|
|
inline void SetAccountSharingInfoList(const Aws::Vector<AccountSharingInfo>& value) { m_accountSharingInfoList = value; }
|
|
|
|
/**
|
|
* <p>A list of AWS accounts where the current document is shared and the version
|
|
* shared with each account.</p>
|
|
*/
|
|
inline void SetAccountSharingInfoList(Aws::Vector<AccountSharingInfo>&& value) { m_accountSharingInfoList = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of AWS accounts where the current document is shared and the version
|
|
* shared with each account.</p>
|
|
*/
|
|
inline DescribeDocumentPermissionResult& WithAccountSharingInfoList(const Aws::Vector<AccountSharingInfo>& value) { SetAccountSharingInfoList(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of AWS accounts where the current document is shared and the version
|
|
* shared with each account.</p>
|
|
*/
|
|
inline DescribeDocumentPermissionResult& WithAccountSharingInfoList(Aws::Vector<AccountSharingInfo>&& value) { SetAccountSharingInfoList(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of AWS accounts where the current document is shared and the version
|
|
* shared with each account.</p>
|
|
*/
|
|
inline DescribeDocumentPermissionResult& AddAccountSharingInfoList(const AccountSharingInfo& value) { m_accountSharingInfoList.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of AWS accounts where the current document is shared and the version
|
|
* shared with each account.</p>
|
|
*/
|
|
inline DescribeDocumentPermissionResult& AddAccountSharingInfoList(AccountSharingInfo&& value) { m_accountSharingInfoList.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::Vector<Aws::String> m_accountIds;
|
|
|
|
Aws::Vector<AccountSharingInfo> m_accountSharingInfoList;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SSM
|
|
} // namespace Aws
|