AWS SDK for C++  1.9.40
AWS SDK for C++
UpdateResourceShareRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ram/RAM_EXPORTS.h>
8 #include <aws/ram/RAMRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace RAM
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "UpdateResourceShare"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
38  inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
39 
43  inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
44 
48  inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
49 
53  inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
54 
58  inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
59 
63  inline UpdateResourceShareRequest& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;}
64 
68  inline UpdateResourceShareRequest& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
69 
73  inline UpdateResourceShareRequest& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
74 
75 
79  inline const Aws::String& GetName() const{ return m_name; }
80 
84  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 
89  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
90 
94  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
95 
99  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
100 
104  inline UpdateResourceShareRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
105 
109  inline UpdateResourceShareRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
110 
114  inline UpdateResourceShareRequest& WithName(const char* value) { SetName(value); return *this;}
115 
116 
121  inline bool GetAllowExternalPrincipals() const{ return m_allowExternalPrincipals; }
122 
127  inline bool AllowExternalPrincipalsHasBeenSet() const { return m_allowExternalPrincipalsHasBeenSet; }
128 
133  inline void SetAllowExternalPrincipals(bool value) { m_allowExternalPrincipalsHasBeenSet = true; m_allowExternalPrincipals = value; }
134 
139  inline UpdateResourceShareRequest& WithAllowExternalPrincipals(bool value) { SetAllowExternalPrincipals(value); return *this;}
140 
141 
146  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
147 
152  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
153 
158  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
159 
164  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
165 
170  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
171 
176  inline UpdateResourceShareRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
177 
182  inline UpdateResourceShareRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
183 
188  inline UpdateResourceShareRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
189 
190  private:
191 
192  Aws::String m_resourceShareArn;
193  bool m_resourceShareArnHasBeenSet;
194 
195  Aws::String m_name;
196  bool m_nameHasBeenSet;
197 
198  bool m_allowExternalPrincipals;
199  bool m_allowExternalPrincipalsHasBeenSet;
200 
201  Aws::String m_clientToken;
202  bool m_clientTokenHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace RAM
207 } // namespace Aws
Aws::RAM::Model::UpdateResourceShareRequest::GetResourceShareArn
const Aws::String & GetResourceShareArn() const
Definition: UpdateResourceShareRequest.h:38
Aws::RAM::Model::UpdateResourceShareRequest::ResourceShareArnHasBeenSet
bool ResourceShareArnHasBeenSet() const
Definition: UpdateResourceShareRequest.h:43
Aws::RAM::Model::UpdateResourceShareRequest::SetName
void SetName(const char *value)
Definition: UpdateResourceShareRequest.h:99
Aws::RAM::Model::UpdateResourceShareRequest
Definition: UpdateResourceShareRequest.h:22
Aws::RAM::Model::UpdateResourceShareRequest::WithResourceShareArn
UpdateResourceShareRequest & WithResourceShareArn(Aws::String &&value)
Definition: UpdateResourceShareRequest.h:68
RAMRequest.h
Aws::RAM::Model::UpdateResourceShareRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateResourceShareRequest.h:30
Aws::RAM::Model::UpdateResourceShareRequest::WithName
UpdateResourceShareRequest & WithName(const Aws::String &value)
Definition: UpdateResourceShareRequest.h:104
Aws::RAM::Model::UpdateResourceShareRequest::SetAllowExternalPrincipals
void SetAllowExternalPrincipals(bool value)
Definition: UpdateResourceShareRequest.h:133
Aws::RAM::Model::UpdateResourceShareRequest::WithAllowExternalPrincipals
UpdateResourceShareRequest & WithAllowExternalPrincipals(bool value)
Definition: UpdateResourceShareRequest.h:139
Aws::RAM::Model::UpdateResourceShareRequest::UpdateResourceShareRequest
UpdateResourceShareRequest()
Aws::RAM::Model::UpdateResourceShareRequest::SetClientToken
void SetClientToken(const char *value)
Definition: UpdateResourceShareRequest.h:170
Aws::RAM::Model::UpdateResourceShareRequest::WithResourceShareArn
UpdateResourceShareRequest & WithResourceShareArn(const Aws::String &value)
Definition: UpdateResourceShareRequest.h:63
Aws::RAM::Model::UpdateResourceShareRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateResourceShareRequest.h:84
Aws::RAM::Model::UpdateResourceShareRequest::WithClientToken
UpdateResourceShareRequest & WithClientToken(const char *value)
Definition: UpdateResourceShareRequest.h:188
Aws::RAM::Model::UpdateResourceShareRequest::WithClientToken
UpdateResourceShareRequest & WithClientToken(const Aws::String &value)
Definition: UpdateResourceShareRequest.h:176
Aws::RAM::Model::UpdateResourceShareRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateResourceShareRequest.h:89
Aws::RAM::Model::UpdateResourceShareRequest::SetResourceShareArn
void SetResourceShareArn(Aws::String &&value)
Definition: UpdateResourceShareRequest.h:53
AWSString.h
RAM_EXPORTS.h
Aws::RAM::Model::UpdateResourceShareRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: UpdateResourceShareRequest.h:164
Aws::RAM::Model::UpdateResourceShareRequest::GetName
const Aws::String & GetName() const
Definition: UpdateResourceShareRequest.h:79
Aws::RAM::Model::UpdateResourceShareRequest::GetAllowExternalPrincipals
bool GetAllowExternalPrincipals() const
Definition: UpdateResourceShareRequest.h:121
Aws::RAM::Model::UpdateResourceShareRequest::SetResourceShareArn
void SetResourceShareArn(const char *value)
Definition: UpdateResourceShareRequest.h:58
Aws::RAM::Model::UpdateResourceShareRequest::WithName
UpdateResourceShareRequest & WithName(Aws::String &&value)
Definition: UpdateResourceShareRequest.h:109
AWS_RAM_API
#define AWS_RAM_API
Definition: RAM_EXPORTS.h:28
Aws::RAM::Model::UpdateResourceShareRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RAM::Model::UpdateResourceShareRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: UpdateResourceShareRequest.h:146
Aws::RAM::Model::UpdateResourceShareRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateResourceShareRequest.h:94
Aws
Definition: AccessManagementClient.h:15
Aws::RAM::Model::UpdateResourceShareRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: UpdateResourceShareRequest.h:152
Aws::RAM::Model::UpdateResourceShareRequest::WithResourceShareArn
UpdateResourceShareRequest & WithResourceShareArn(const char *value)
Definition: UpdateResourceShareRequest.h:73
Aws::RAM::Model::UpdateResourceShareRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: UpdateResourceShareRequest.h:158
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RAM::Model::UpdateResourceShareRequest::WithClientToken
UpdateResourceShareRequest & WithClientToken(Aws::String &&value)
Definition: UpdateResourceShareRequest.h:182
Aws::RAM::Model::UpdateResourceShareRequest::AllowExternalPrincipalsHasBeenSet
bool AllowExternalPrincipalsHasBeenSet() const
Definition: UpdateResourceShareRequest.h:127
Aws::RAM::Model::UpdateResourceShareRequest::SetResourceShareArn
void SetResourceShareArn(const Aws::String &value)
Definition: UpdateResourceShareRequest.h:48
Aws::RAM::RAMRequest
Definition: RAMRequest.h:17
Aws::RAM::Model::UpdateResourceShareRequest::WithName
UpdateResourceShareRequest & WithName(const char *value)
Definition: UpdateResourceShareRequest.h:114