AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListPermissionAssociationsRequest.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ram/model/ResourceShareAssociationStatus.h>
11#include <aws/ram/model/PermissionFeatureSet.h>
12#include <utility>
13
14namespace Aws
15{
16namespace RAM
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListPermissionAssociations"; }
33
34 AWS_RAM_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetPermissionArn() const{ return m_permissionArn; }
44 inline bool PermissionArnHasBeenSet() const { return m_permissionArnHasBeenSet; }
45 inline void SetPermissionArn(const Aws::String& value) { m_permissionArnHasBeenSet = true; m_permissionArn = value; }
46 inline void SetPermissionArn(Aws::String&& value) { m_permissionArnHasBeenSet = true; m_permissionArn = std::move(value); }
47 inline void SetPermissionArn(const char* value) { m_permissionArnHasBeenSet = true; m_permissionArn.assign(value); }
49 inline ListPermissionAssociationsRequest& WithPermissionArn(Aws::String&& value) { SetPermissionArn(std::move(value)); return *this;}
50 inline ListPermissionAssociationsRequest& WithPermissionArn(const char* value) { SetPermissionArn(value); return *this;}
52
54
60 inline int GetPermissionVersion() const{ return m_permissionVersion; }
61 inline bool PermissionVersionHasBeenSet() const { return m_permissionVersionHasBeenSet; }
62 inline void SetPermissionVersion(int value) { m_permissionVersionHasBeenSet = true; m_permissionVersion = value; }
65
67
71 inline const ResourceShareAssociationStatus& GetAssociationStatus() const{ return m_associationStatus; }
72 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
73 inline void SetAssociationStatus(const ResourceShareAssociationStatus& value) { m_associationStatusHasBeenSet = true; m_associationStatus = value; }
74 inline void SetAssociationStatus(ResourceShareAssociationStatus&& value) { m_associationStatusHasBeenSet = true; m_associationStatus = std::move(value); }
78
80
84 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
85 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
86 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
87 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
88 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
90 inline ListPermissionAssociationsRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
91 inline ListPermissionAssociationsRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;}
93
95
99 inline const PermissionFeatureSet& GetFeatureSet() const{ return m_featureSet; }
100 inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
101 inline void SetFeatureSet(const PermissionFeatureSet& value) { m_featureSetHasBeenSet = true; m_featureSet = value; }
102 inline void SetFeatureSet(PermissionFeatureSet&& value) { m_featureSetHasBeenSet = true; m_featureSet = std::move(value); }
104 inline ListPermissionAssociationsRequest& WithFeatureSet(PermissionFeatureSet&& value) { SetFeatureSet(std::move(value)); return *this;}
106
108
115 inline bool GetDefaultVersion() const{ return m_defaultVersion; }
116 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
117 inline void SetDefaultVersion(bool value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; }
118 inline ListPermissionAssociationsRequest& WithDefaultVersion(bool value) { SetDefaultVersion(value); return *this;}
120
122
129 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
130 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
131 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
132 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
133 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
134 inline ListPermissionAssociationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
135 inline ListPermissionAssociationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
136 inline ListPermissionAssociationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
138
140
151 inline int GetMaxResults() const{ return m_maxResults; }
152 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
153 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
154 inline ListPermissionAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
156 private:
157
158 Aws::String m_permissionArn;
159 bool m_permissionArnHasBeenSet = false;
160
161 int m_permissionVersion;
162 bool m_permissionVersionHasBeenSet = false;
163
164 ResourceShareAssociationStatus m_associationStatus;
165 bool m_associationStatusHasBeenSet = false;
166
167 Aws::String m_resourceType;
168 bool m_resourceTypeHasBeenSet = false;
169
170 PermissionFeatureSet m_featureSet;
171 bool m_featureSetHasBeenSet = false;
172
173 bool m_defaultVersion;
174 bool m_defaultVersionHasBeenSet = false;
175
176 Aws::String m_nextToken;
177 bool m_nextTokenHasBeenSet = false;
178
179 int m_maxResults;
180 bool m_maxResultsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace RAM
185} // namespace Aws
ListPermissionAssociationsRequest & WithPermissionVersion(int value)
ListPermissionAssociationsRequest & WithResourceType(const Aws::String &value)
ListPermissionAssociationsRequest & WithFeatureSet(PermissionFeatureSet &&value)
const ResourceShareAssociationStatus & GetAssociationStatus() const
ListPermissionAssociationsRequest & WithPermissionArn(const Aws::String &value)
ListPermissionAssociationsRequest & WithDefaultVersion(bool value)
ListPermissionAssociationsRequest & WithResourceType(Aws::String &&value)
ListPermissionAssociationsRequest & WithNextToken(const char *value)
AWS_RAM_API Aws::String SerializePayload() const override
ListPermissionAssociationsRequest & WithMaxResults(int value)
ListPermissionAssociationsRequest & WithPermissionArn(const char *value)
ListPermissionAssociationsRequest & WithAssociationStatus(const ResourceShareAssociationStatus &value)
ListPermissionAssociationsRequest & WithResourceType(const char *value)
ListPermissionAssociationsRequest & WithAssociationStatus(ResourceShareAssociationStatus &&value)
ListPermissionAssociationsRequest & WithPermissionArn(Aws::String &&value)
ListPermissionAssociationsRequest & WithFeatureSet(const PermissionFeatureSet &value)
ListPermissionAssociationsRequest & WithNextToken(const Aws::String &value)
ListPermissionAssociationsRequest & WithNextToken(Aws::String &&value)
void SetAssociationStatus(ResourceShareAssociationStatus &&value)
void SetAssociationStatus(const ResourceShareAssociationStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String