AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeDocumentPermissionResult.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm/model/AccountSharingInfo.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SSM
26{
27namespace Model
28{
30 {
31 public:
32 AWS_SSM_API DescribeDocumentPermissionResult() = default;
35
36
38
42 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
43 template<typename AccountIdsT = Aws::Vector<Aws::String>>
44 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
45 template<typename AccountIdsT = Aws::Vector<Aws::String>>
46 DescribeDocumentPermissionResult& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
47 template<typename AccountIdsT = Aws::String>
48 DescribeDocumentPermissionResult& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
50
52
56 inline const Aws::Vector<AccountSharingInfo>& GetAccountSharingInfoList() const { return m_accountSharingInfoList; }
57 template<typename AccountSharingInfoListT = Aws::Vector<AccountSharingInfo>>
58 void SetAccountSharingInfoList(AccountSharingInfoListT&& value) { m_accountSharingInfoListHasBeenSet = true; m_accountSharingInfoList = std::forward<AccountSharingInfoListT>(value); }
59 template<typename AccountSharingInfoListT = Aws::Vector<AccountSharingInfo>>
60 DescribeDocumentPermissionResult& WithAccountSharingInfoList(AccountSharingInfoListT&& value) { SetAccountSharingInfoList(std::forward<AccountSharingInfoListT>(value)); return *this;}
61 template<typename AccountSharingInfoListT = AccountSharingInfo>
62 DescribeDocumentPermissionResult& AddAccountSharingInfoList(AccountSharingInfoListT&& value) { m_accountSharingInfoListHasBeenSet = true; m_accountSharingInfoList.emplace_back(std::forward<AccountSharingInfoListT>(value)); return *this; }
64
66
70 inline const Aws::String& GetNextToken() const { return m_nextToken; }
71 template<typename NextTokenT = Aws::String>
72 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
73 template<typename NextTokenT = Aws::String>
74 DescribeDocumentPermissionResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template<typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
82 template<typename RequestIdT = Aws::String>
83 DescribeDocumentPermissionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
85 private:
86
87 Aws::Vector<Aws::String> m_accountIds;
88 bool m_accountIdsHasBeenSet = false;
89
90 Aws::Vector<AccountSharingInfo> m_accountSharingInfoList;
91 bool m_accountSharingInfoListHasBeenSet = false;
92
93 Aws::String m_nextToken;
94 bool m_nextTokenHasBeenSet = false;
95
96 Aws::String m_requestId;
97 bool m_requestIdHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SSM
102} // namespace Aws
AWS_SSM_API DescribeDocumentPermissionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeDocumentPermissionResult & AddAccountIds(AccountIdsT &&value)
DescribeDocumentPermissionResult & WithRequestId(RequestIdT &&value)
DescribeDocumentPermissionResult & WithAccountIds(AccountIdsT &&value)
AWS_SSM_API DescribeDocumentPermissionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeDocumentPermissionResult & AddAccountSharingInfoList(AccountSharingInfoListT &&value)
DescribeDocumentPermissionResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< AccountSharingInfo > & GetAccountSharingInfoList() const
DescribeDocumentPermissionResult & WithAccountSharingInfoList(AccountSharingInfoListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue