AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetResourceShareAssociationsRequest.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/ram/model/ResourceShareAssociationType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/ram/model/ResourceShareAssociationStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace RAM
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_RAM_API GetResourceShareAssociationsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetResourceShareAssociations"; }
34
35 AWS_RAM_API Aws::String SerializePayload() const override;
36
37
39
46 inline ResourceShareAssociationType GetAssociationType() const { return m_associationType; }
47 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
48 inline void SetAssociationType(ResourceShareAssociationType value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
51
53
59 inline const Aws::Vector<Aws::String>& GetResourceShareArns() const { return m_resourceShareArns; }
60 inline bool ResourceShareArnsHasBeenSet() const { return m_resourceShareArnsHasBeenSet; }
61 template<typename ResourceShareArnsT = Aws::Vector<Aws::String>>
62 void SetResourceShareArns(ResourceShareArnsT&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = std::forward<ResourceShareArnsT>(value); }
63 template<typename ResourceShareArnsT = Aws::Vector<Aws::String>>
64 GetResourceShareAssociationsRequest& WithResourceShareArns(ResourceShareArnsT&& value) { SetResourceShareArns(std::forward<ResourceShareArnsT>(value)); return *this;}
65 template<typename ResourceShareArnsT = Aws::String>
66 GetResourceShareAssociationsRequest& AddResourceShareArns(ResourceShareArnsT&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.emplace_back(std::forward<ResourceShareArnsT>(value)); return *this; }
68
70
77 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
78 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
79 template<typename ResourceArnT = Aws::String>
80 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
81 template<typename ResourceArnT = Aws::String>
82 GetResourceShareAssociationsRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
84
86
94 inline const Aws::String& GetPrincipal() const { return m_principal; }
95 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
96 template<typename PrincipalT = Aws::String>
97 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
98 template<typename PrincipalT = Aws::String>
99 GetResourceShareAssociationsRequest& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
101
103
107 inline ResourceShareAssociationStatus GetAssociationStatus() const { return m_associationStatus; }
108 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
109 inline void SetAssociationStatus(ResourceShareAssociationStatus value) { m_associationStatusHasBeenSet = true; m_associationStatus = value; }
112
114
121 inline const Aws::String& GetNextToken() const { return m_nextToken; }
122 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
123 template<typename NextTokenT = Aws::String>
124 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
125 template<typename NextTokenT = Aws::String>
126 GetResourceShareAssociationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
128
130
141 inline int GetMaxResults() const { return m_maxResults; }
142 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
143 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
144 inline GetResourceShareAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
146 private:
147
149 bool m_associationTypeHasBeenSet = false;
150
151 Aws::Vector<Aws::String> m_resourceShareArns;
152 bool m_resourceShareArnsHasBeenSet = false;
153
154 Aws::String m_resourceArn;
155 bool m_resourceArnHasBeenSet = false;
156
157 Aws::String m_principal;
158 bool m_principalHasBeenSet = false;
159
161 bool m_associationStatusHasBeenSet = false;
162
163 Aws::String m_nextToken;
164 bool m_nextTokenHasBeenSet = false;
165
166 int m_maxResults{0};
167 bool m_maxResultsHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace RAM
172} // 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