AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeDocumentPermissionResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSM_EXPORTS.h>
10#include <aws/ssm/model/AccountSharingInfo.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace SSM {
24namespace Model {
26 public:
27 AWS_SSM_API DescribeDocumentPermissionResult() = default;
30
32
36 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
37 template <typename AccountIdsT = Aws::Vector<Aws::String>>
38 void SetAccountIds(AccountIdsT&& value) {
39 m_accountIdsHasBeenSet = true;
40 m_accountIds = std::forward<AccountIdsT>(value);
41 }
42 template <typename AccountIdsT = Aws::Vector<Aws::String>>
44 SetAccountIds(std::forward<AccountIdsT>(value));
45 return *this;
46 }
47 template <typename AccountIdsT = Aws::String>
49 m_accountIdsHasBeenSet = true;
50 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<AccountSharingInfo>& GetAccountSharingInfoList() const { return m_accountSharingInfoList; }
61 template <typename AccountSharingInfoListT = Aws::Vector<AccountSharingInfo>>
62 void SetAccountSharingInfoList(AccountSharingInfoListT&& value) {
63 m_accountSharingInfoListHasBeenSet = true;
64 m_accountSharingInfoList = std::forward<AccountSharingInfoListT>(value);
65 }
66 template <typename AccountSharingInfoListT = Aws::Vector<AccountSharingInfo>>
68 SetAccountSharingInfoList(std::forward<AccountSharingInfoListT>(value));
69 return *this;
70 }
71 template <typename AccountSharingInfoListT = AccountSharingInfo>
73 m_accountSharingInfoListHasBeenSet = true;
74 m_accountSharingInfoList.emplace_back(std::forward<AccountSharingInfoListT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetNextToken() const { return m_nextToken; }
85 template <typename NextTokenT = Aws::String>
86 void SetNextToken(NextTokenT&& value) {
87 m_nextTokenHasBeenSet = true;
88 m_nextToken = std::forward<NextTokenT>(value);
89 }
90 template <typename NextTokenT = Aws::String>
92 SetNextToken(std::forward<NextTokenT>(value));
93 return *this;
94 }
96
98
99 inline const Aws::String& GetRequestId() const { return m_requestId; }
100 template <typename RequestIdT = Aws::String>
101 void SetRequestId(RequestIdT&& value) {
102 m_requestIdHasBeenSet = true;
103 m_requestId = std::forward<RequestIdT>(value);
104 }
105 template <typename RequestIdT = Aws::String>
107 SetRequestId(std::forward<RequestIdT>(value));
108 return *this;
109 }
111 private:
112 Aws::Vector<Aws::String> m_accountIds;
113
114 Aws::Vector<AccountSharingInfo> m_accountSharingInfoList;
115
116 Aws::String m_nextToken;
117
118 Aws::String m_requestId;
119 bool m_accountIdsHasBeenSet = false;
120 bool m_accountSharingInfoListHasBeenSet = false;
121 bool m_nextTokenHasBeenSet = false;
122 bool m_requestIdHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace SSM
127} // 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