AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
AssociateResourceSharePermissionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ram/RAMRequest.h>
9#include <aws/ram/RAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace RAM {
15namespace Model {
16
20 public:
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "AssociateResourceSharePermission"; }
28
29 AWS_RAM_API Aws::String SerializePayload() const override;
30
32
38 inline const Aws::String& GetResourceShareArn() const { return m_resourceShareArn; }
39 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
40 template <typename ResourceShareArnT = Aws::String>
41 void SetResourceShareArn(ResourceShareArnT&& value) {
42 m_resourceShareArnHasBeenSet = true;
43 m_resourceShareArn = std::forward<ResourceShareArnT>(value);
44 }
45 template <typename ResourceShareArnT = Aws::String>
47 SetResourceShareArn(std::forward<ResourceShareArnT>(value));
48 return *this;
49 }
51
53
63 inline const Aws::String& GetPermissionArn() const { return m_permissionArn; }
64 inline bool PermissionArnHasBeenSet() const { return m_permissionArnHasBeenSet; }
65 template <typename PermissionArnT = Aws::String>
66 void SetPermissionArn(PermissionArnT&& value) {
67 m_permissionArnHasBeenSet = true;
68 m_permissionArn = std::forward<PermissionArnT>(value);
69 }
70 template <typename PermissionArnT = Aws::String>
72 SetPermissionArn(std::forward<PermissionArnT>(value));
73 return *this;
74 }
76
78
89 inline bool GetReplace() const { return m_replace; }
90 inline bool ReplaceHasBeenSet() const { return m_replaceHasBeenSet; }
91 inline void SetReplace(bool value) {
92 m_replaceHasBeenSet = true;
93 m_replace = value;
94 }
96 SetReplace(value);
97 return *this;
98 }
100
102
114 inline const Aws::String& GetClientToken() const { return m_clientToken; }
115 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
116 template <typename ClientTokenT = Aws::String>
117 void SetClientToken(ClientTokenT&& value) {
118 m_clientTokenHasBeenSet = true;
119 m_clientToken = std::forward<ClientTokenT>(value);
120 }
121 template <typename ClientTokenT = Aws::String>
123 SetClientToken(std::forward<ClientTokenT>(value));
124 return *this;
125 }
127
129
139 inline int GetPermissionVersion() const { return m_permissionVersion; }
140 inline bool PermissionVersionHasBeenSet() const { return m_permissionVersionHasBeenSet; }
141 inline void SetPermissionVersion(int value) {
142 m_permissionVersionHasBeenSet = true;
143 m_permissionVersion = value;
144 }
147 return *this;
148 }
150 private:
151 Aws::String m_resourceShareArn;
152
153 Aws::String m_permissionArn;
154
155 bool m_replace{false};
156
157 Aws::String m_clientToken;
158
159 int m_permissionVersion{0};
160 bool m_resourceShareArnHasBeenSet = false;
161 bool m_permissionArnHasBeenSet = false;
162 bool m_replaceHasBeenSet = false;
163 bool m_clientTokenHasBeenSet = false;
164 bool m_permissionVersionHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace RAM
169} // namespace Aws
AssociateResourceSharePermissionRequest & WithReplace(bool value)
AssociateResourceSharePermissionRequest & WithPermissionVersion(int value)
AssociateResourceSharePermissionRequest & WithClientToken(ClientTokenT &&value)
AWS_RAM_API Aws::String SerializePayload() const override
AssociateResourceSharePermissionRequest & WithPermissionArn(PermissionArnT &&value)
AssociateResourceSharePermissionRequest & WithResourceShareArn(ResourceShareArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String