AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const ResourceShareAssociationType& GetAssociationType() const{ return m_associationType; }
47 inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; }
48 inline void SetAssociationType(const ResourceShareAssociationType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; }
49 inline void SetAssociationType(ResourceShareAssociationType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); }
53
55
61 inline const Aws::Vector<Aws::String>& GetResourceShareArns() const{ return m_resourceShareArns; }
62 inline bool ResourceShareArnsHasBeenSet() const { return m_resourceShareArnsHasBeenSet; }
63 inline void SetResourceShareArns(const Aws::Vector<Aws::String>& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = value; }
64 inline void SetResourceShareArns(Aws::Vector<Aws::String>&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns = std::move(value); }
67 inline GetResourceShareAssociationsRequest& AddResourceShareArns(const Aws::String& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; }
68 inline GetResourceShareAssociationsRequest& AddResourceShareArns(Aws::String&& value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(std::move(value)); return *this; }
69 inline GetResourceShareAssociationsRequest& AddResourceShareArns(const char* value) { m_resourceShareArnsHasBeenSet = true; m_resourceShareArns.push_back(value); return *this; }
71
73
80 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
81 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
82 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
83 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
84 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
86 inline GetResourceShareAssociationsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
87 inline GetResourceShareAssociationsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
89
91
99 inline const Aws::String& GetPrincipal() const{ return m_principal; }
100 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
101 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
102 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
103 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
104 inline GetResourceShareAssociationsRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
105 inline GetResourceShareAssociationsRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
106 inline GetResourceShareAssociationsRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
108
110
114 inline const ResourceShareAssociationStatus& GetAssociationStatus() const{ return m_associationStatus; }
115 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
116 inline void SetAssociationStatus(const ResourceShareAssociationStatus& value) { m_associationStatusHasBeenSet = true; m_associationStatus = value; }
117 inline void SetAssociationStatus(ResourceShareAssociationStatus&& value) { m_associationStatusHasBeenSet = true; m_associationStatus = std::move(value); }
121
123
130 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
131 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
132 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
133 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
134 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
135 inline GetResourceShareAssociationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
136 inline GetResourceShareAssociationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
137 inline GetResourceShareAssociationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
139
141
152 inline int GetMaxResults() const{ return m_maxResults; }
153 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
154 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
155 inline GetResourceShareAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
157 private:
158
159 ResourceShareAssociationType m_associationType;
160 bool m_associationTypeHasBeenSet = false;
161
162 Aws::Vector<Aws::String> m_resourceShareArns;
163 bool m_resourceShareArnsHasBeenSet = false;
164
165 Aws::String m_resourceArn;
166 bool m_resourceArnHasBeenSet = false;
167
168 Aws::String m_principal;
169 bool m_principalHasBeenSet = false;
170
171 ResourceShareAssociationStatus m_associationStatus;
172 bool m_associationStatusHasBeenSet = false;
173
174 Aws::String m_nextToken;
175 bool m_nextTokenHasBeenSet = false;
176
177 int m_maxResults;
178 bool m_maxResultsHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace RAM
183} // namespace Aws
GetResourceShareAssociationsRequest & WithMaxResults(int value)
GetResourceShareAssociationsRequest & WithAssociationType(ResourceShareAssociationType &&value)
AWS_RAM_API Aws::String SerializePayload() const override
GetResourceShareAssociationsRequest & WithNextToken(Aws::String &&value)
GetResourceShareAssociationsRequest & WithAssociationStatus(ResourceShareAssociationStatus &&value)
void SetAssociationType(const ResourceShareAssociationType &value)
GetResourceShareAssociationsRequest & WithResourceArn(const char *value)
void SetAssociationStatus(const ResourceShareAssociationStatus &value)
GetResourceShareAssociationsRequest & AddResourceShareArns(Aws::String &&value)
GetResourceShareAssociationsRequest & WithPrincipal(const char *value)
const ResourceShareAssociationStatus & GetAssociationStatus() const
GetResourceShareAssociationsRequest & WithResourceArn(const Aws::String &value)
GetResourceShareAssociationsRequest & WithResourceArn(Aws::String &&value)
GetResourceShareAssociationsRequest & WithAssociationType(const ResourceShareAssociationType &value)
GetResourceShareAssociationsRequest & AddResourceShareArns(const Aws::String &value)
GetResourceShareAssociationsRequest & WithAssociationStatus(const ResourceShareAssociationStatus &value)
GetResourceShareAssociationsRequest & WithResourceShareArns(const Aws::Vector< Aws::String > &value)
GetResourceShareAssociationsRequest & AddResourceShareArns(const char *value)
GetResourceShareAssociationsRequest & WithResourceShareArns(Aws::Vector< Aws::String > &&value)
GetResourceShareAssociationsRequest & WithPrincipal(Aws::String &&value)
void SetResourceShareArns(const Aws::Vector< Aws::String > &value)
GetResourceShareAssociationsRequest & WithNextToken(const char *value)
GetResourceShareAssociationsRequest & WithNextToken(const Aws::String &value)
GetResourceShareAssociationsRequest & WithPrincipal(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector