AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeDocumentPermissionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/AccountSharingInfo.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace SSM {
25namespace Model {
27 public:
28 AWS_SSM_API DescribeDocumentPermissionResult() = default;
31
33
37 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
38 template <typename AccountIdsT = Aws::Vector<Aws::String>>
39 void SetAccountIds(AccountIdsT&& value) {
40 m_accountIdsHasBeenSet = true;
41 m_accountIds = std::forward<AccountIdsT>(value);
42 }
43 template <typename AccountIdsT = Aws::Vector<Aws::String>>
45 SetAccountIds(std::forward<AccountIdsT>(value));
46 return *this;
47 }
48 template <typename AccountIdsT = Aws::String>
50 m_accountIdsHasBeenSet = true;
51 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<AccountSharingInfo>& GetAccountSharingInfoList() const { return m_accountSharingInfoList; }
62 template <typename AccountSharingInfoListT = Aws::Vector<AccountSharingInfo>>
63 void SetAccountSharingInfoList(AccountSharingInfoListT&& value) {
64 m_accountSharingInfoListHasBeenSet = true;
65 m_accountSharingInfoList = std::forward<AccountSharingInfoListT>(value);
66 }
67 template <typename AccountSharingInfoListT = Aws::Vector<AccountSharingInfo>>
69 SetAccountSharingInfoList(std::forward<AccountSharingInfoListT>(value));
70 return *this;
71 }
72 template <typename AccountSharingInfoListT = AccountSharingInfo>
74 m_accountSharingInfoListHasBeenSet = true;
75 m_accountSharingInfoList.emplace_back(std::forward<AccountSharingInfoListT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetNextToken() const { return m_nextToken; }
86 template <typename NextTokenT = Aws::String>
87 void SetNextToken(NextTokenT&& value) {
88 m_nextTokenHasBeenSet = true;
89 m_nextToken = std::forward<NextTokenT>(value);
90 }
91 template <typename NextTokenT = Aws::String>
93 SetNextToken(std::forward<NextTokenT>(value));
94 return *this;
95 }
97
99
100 inline const Aws::String& GetRequestId() const { return m_requestId; }
101 template <typename RequestIdT = Aws::String>
102 void SetRequestId(RequestIdT&& value) {
103 m_requestIdHasBeenSet = true;
104 m_requestId = std::forward<RequestIdT>(value);
105 }
106 template <typename RequestIdT = Aws::String>
108 SetRequestId(std::forward<RequestIdT>(value));
109 return *this;
110 }
112 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
113
114 private:
115 Aws::Vector<Aws::String> m_accountIds;
116
117 Aws::Vector<AccountSharingInfo> m_accountSharingInfoList;
118
119 Aws::String m_nextToken;
120
121 Aws::String m_requestId;
122 Aws::Http::HttpResponseCode m_HttpResponseCode;
123 bool m_accountIdsHasBeenSet = false;
124 bool m_accountSharingInfoListHasBeenSet = false;
125 bool m_nextTokenHasBeenSet = false;
126 bool m_requestIdHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace SSM
131} // 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