AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
GetResourceShareAssociationsRequest.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/ram/RAMRequest.h>
10#include <aws/ram/RAM_EXPORTS.h>
11#include <aws/ram/model/ResourceShareAssociationStatus.h>
12#include <aws/ram/model/ResourceShareAssociationType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace RAM {
18namespace Model {
19
23 public:
24 AWS_RAM_API GetResourceShareAssociationsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetResourceShareAssociations"; }
31
32 AWS_RAM_API Aws::String SerializePayload() const override;
33
35
42 inline ResourceShareAssociationType GetAssociationType() const { return m_associationType; }
43 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
45 m_associationTypeHasBeenSet = true;
46 m_associationType = value;
47 }
49 SetAssociationType(value);
50 return *this;
51 }
53
55
61 inline const Aws::Vector<Aws::String>& GetResourceShareArns() const { return m_resourceShareArns; }
62 inline bool ResourceShareArnsHasBeenSet() const { return m_resourceShareArnsHasBeenSet; }
63 template <typename ResourceShareArnsT = Aws::Vector<Aws::String>>
64 void SetResourceShareArns(ResourceShareArnsT&& value) {
65 m_resourceShareArnsHasBeenSet = true;
66 m_resourceShareArns = std::forward<ResourceShareArnsT>(value);
67 }
68 template <typename ResourceShareArnsT = Aws::Vector<Aws::String>>
70 SetResourceShareArns(std::forward<ResourceShareArnsT>(value));
71 return *this;
72 }
73 template <typename ResourceShareArnsT = Aws::String>
75 m_resourceShareArnsHasBeenSet = true;
76 m_resourceShareArns.emplace_back(std::forward<ResourceShareArnsT>(value));
77 return *this;
78 }
80
82
89 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
90 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
91 template <typename ResourceArnT = Aws::String>
92 void SetResourceArn(ResourceArnT&& value) {
93 m_resourceArnHasBeenSet = true;
94 m_resourceArn = std::forward<ResourceArnT>(value);
95 }
96 template <typename ResourceArnT = Aws::String>
98 SetResourceArn(std::forward<ResourceArnT>(value));
99 return *this;
100 }
102
104
112 inline const Aws::String& GetPrincipal() const { return m_principal; }
113 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
114 template <typename PrincipalT = Aws::String>
115 void SetPrincipal(PrincipalT&& value) {
116 m_principalHasBeenSet = true;
117 m_principal = std::forward<PrincipalT>(value);
118 }
119 template <typename PrincipalT = Aws::String>
121 SetPrincipal(std::forward<PrincipalT>(value));
122 return *this;
123 }
125
127
131 inline ResourceShareAssociationStatus GetAssociationStatus() const { return m_associationStatus; }
132 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
134 m_associationStatusHasBeenSet = true;
135 m_associationStatus = value;
136 }
139 return *this;
140 }
142
144
151 inline const Aws::String& GetNextToken() const { return m_nextToken; }
152 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
153 template <typename NextTokenT = Aws::String>
154 void SetNextToken(NextTokenT&& value) {
155 m_nextTokenHasBeenSet = true;
156 m_nextToken = std::forward<NextTokenT>(value);
157 }
158 template <typename NextTokenT = Aws::String>
160 SetNextToken(std::forward<NextTokenT>(value));
161 return *this;
162 }
164
166
177 inline int GetMaxResults() const { return m_maxResults; }
178 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
179 inline void SetMaxResults(int value) {
180 m_maxResultsHasBeenSet = true;
181 m_maxResults = value;
182 }
184 SetMaxResults(value);
185 return *this;
186 }
188 private:
190
191 Aws::Vector<Aws::String> m_resourceShareArns;
192
193 Aws::String m_resourceArn;
194
195 Aws::String m_principal;
196
198
199 Aws::String m_nextToken;
200
201 int m_maxResults{0};
202 bool m_associationTypeHasBeenSet = false;
203 bool m_resourceShareArnsHasBeenSet = false;
204 bool m_resourceArnHasBeenSet = false;
205 bool m_principalHasBeenSet = false;
206 bool m_associationStatusHasBeenSet = false;
207 bool m_nextTokenHasBeenSet = false;
208 bool m_maxResultsHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace RAM
213} // namespace Aws
GetResourceShareAssociationsRequest & WithMaxResults(int value)
AWS_RAM_API Aws::String SerializePayload() const override
GetResourceShareAssociationsRequest & WithAssociationType(ResourceShareAssociationType value)
GetResourceShareAssociationsRequest & AddResourceShareArns(ResourceShareArnsT &&value)
GetResourceShareAssociationsRequest & WithNextToken(NextTokenT &&value)
GetResourceShareAssociationsRequest & WithAssociationStatus(ResourceShareAssociationStatus value)
GetResourceShareAssociationsRequest & WithResourceShareArns(ResourceShareArnsT &&value)
GetResourceShareAssociationsRequest & WithResourceArn(ResourceArnT &&value)
GetResourceShareAssociationsRequest & WithPrincipal(PrincipalT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector