AWS SDK for C++  1.9.154
AWS SDK for C++
ModifyClusterIamRolesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Redshift
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ModifyClusterIamRoles"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
47  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
48 
53  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
54 
59  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
60 
65  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
66 
71  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
72 
77  inline ModifyClusterIamRolesRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
78 
83  inline ModifyClusterIamRolesRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
84 
89  inline ModifyClusterIamRolesRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
90 
91 
97  inline const Aws::Vector<Aws::String>& GetAddIamRoles() const{ return m_addIamRoles; }
98 
104  inline bool AddIamRolesHasBeenSet() const { return m_addIamRolesHasBeenSet; }
105 
111  inline void SetAddIamRoles(const Aws::Vector<Aws::String>& value) { m_addIamRolesHasBeenSet = true; m_addIamRoles = value; }
112 
118  inline void SetAddIamRoles(Aws::Vector<Aws::String>&& value) { m_addIamRolesHasBeenSet = true; m_addIamRoles = std::move(value); }
119 
125  inline ModifyClusterIamRolesRequest& WithAddIamRoles(const Aws::Vector<Aws::String>& value) { SetAddIamRoles(value); return *this;}
126 
132  inline ModifyClusterIamRolesRequest& WithAddIamRoles(Aws::Vector<Aws::String>&& value) { SetAddIamRoles(std::move(value)); return *this;}
133 
139  inline ModifyClusterIamRolesRequest& AddAddIamRoles(const Aws::String& value) { m_addIamRolesHasBeenSet = true; m_addIamRoles.push_back(value); return *this; }
140 
146  inline ModifyClusterIamRolesRequest& AddAddIamRoles(Aws::String&& value) { m_addIamRolesHasBeenSet = true; m_addIamRoles.push_back(std::move(value)); return *this; }
147 
153  inline ModifyClusterIamRolesRequest& AddAddIamRoles(const char* value) { m_addIamRolesHasBeenSet = true; m_addIamRoles.push_back(value); return *this; }
154 
155 
161  inline const Aws::Vector<Aws::String>& GetRemoveIamRoles() const{ return m_removeIamRoles; }
162 
168  inline bool RemoveIamRolesHasBeenSet() const { return m_removeIamRolesHasBeenSet; }
169 
175  inline void SetRemoveIamRoles(const Aws::Vector<Aws::String>& value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles = value; }
176 
182  inline void SetRemoveIamRoles(Aws::Vector<Aws::String>&& value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles = std::move(value); }
183 
189  inline ModifyClusterIamRolesRequest& WithRemoveIamRoles(const Aws::Vector<Aws::String>& value) { SetRemoveIamRoles(value); return *this;}
190 
196  inline ModifyClusterIamRolesRequest& WithRemoveIamRoles(Aws::Vector<Aws::String>&& value) { SetRemoveIamRoles(std::move(value)); return *this;}
197 
203  inline ModifyClusterIamRolesRequest& AddRemoveIamRoles(const Aws::String& value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles.push_back(value); return *this; }
204 
210  inline ModifyClusterIamRolesRequest& AddRemoveIamRoles(Aws::String&& value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles.push_back(std::move(value)); return *this; }
211 
217  inline ModifyClusterIamRolesRequest& AddRemoveIamRoles(const char* value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles.push_back(value); return *this; }
218 
219 
224  inline const Aws::String& GetDefaultIamRoleArn() const{ return m_defaultIamRoleArn; }
225 
230  inline bool DefaultIamRoleArnHasBeenSet() const { return m_defaultIamRoleArnHasBeenSet; }
231 
236  inline void SetDefaultIamRoleArn(const Aws::String& value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn = value; }
237 
242  inline void SetDefaultIamRoleArn(Aws::String&& value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn = std::move(value); }
243 
248  inline void SetDefaultIamRoleArn(const char* value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn.assign(value); }
249 
254  inline ModifyClusterIamRolesRequest& WithDefaultIamRoleArn(const Aws::String& value) { SetDefaultIamRoleArn(value); return *this;}
255 
260  inline ModifyClusterIamRolesRequest& WithDefaultIamRoleArn(Aws::String&& value) { SetDefaultIamRoleArn(std::move(value)); return *this;}
261 
266  inline ModifyClusterIamRolesRequest& WithDefaultIamRoleArn(const char* value) { SetDefaultIamRoleArn(value); return *this;}
267 
268  private:
269 
270  Aws::String m_clusterIdentifier;
271  bool m_clusterIdentifierHasBeenSet;
272 
273  Aws::Vector<Aws::String> m_addIamRoles;
274  bool m_addIamRolesHasBeenSet;
275 
276  Aws::Vector<Aws::String> m_removeIamRoles;
277  bool m_removeIamRolesHasBeenSet;
278 
279  Aws::String m_defaultIamRoleArn;
280  bool m_defaultIamRoleArnHasBeenSet;
281  };
282 
283 } // namespace Model
284 } // namespace Redshift
285 } // namespace Aws
Aws::Redshift::Model::ModifyClusterIamRolesRequest::GetDefaultIamRoleArn
const Aws::String & GetDefaultIamRoleArn() const
Definition: ModifyClusterIamRolesRequest.h:224
Aws::Redshift::Model::ModifyClusterIamRolesRequest::WithRemoveIamRoles
ModifyClusterIamRolesRequest & WithRemoveIamRoles(Aws::Vector< Aws::String > &&value)
Definition: ModifyClusterIamRolesRequest.h:196
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::ModifyClusterIamRolesRequest::SetRemoveIamRoles
void SetRemoveIamRoles(Aws::Vector< Aws::String > &&value)
Definition: ModifyClusterIamRolesRequest.h:182
Aws::Redshift::Model::ModifyClusterIamRolesRequest::GetRemoveIamRoles
const Aws::Vector< Aws::String > & GetRemoveIamRoles() const
Definition: ModifyClusterIamRolesRequest.h:161
Aws::Redshift::Model::ModifyClusterIamRolesRequest::AddRemoveIamRoles
ModifyClusterIamRolesRequest & AddRemoveIamRoles(const Aws::String &value)
Definition: ModifyClusterIamRolesRequest.h:203
Aws::Redshift::Model::ModifyClusterIamRolesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::ModifyClusterIamRolesRequest::AddRemoveIamRoles
ModifyClusterIamRolesRequest & AddRemoveIamRoles(Aws::String &&value)
Definition: ModifyClusterIamRolesRequest.h:210
Aws::Redshift::Model::ModifyClusterIamRolesRequest::WithAddIamRoles
ModifyClusterIamRolesRequest & WithAddIamRoles(const Aws::Vector< Aws::String > &value)
Definition: ModifyClusterIamRolesRequest.h:125
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RedshiftRequest.h
Aws::Redshift::Model::ModifyClusterIamRolesRequest::WithDefaultIamRoleArn
ModifyClusterIamRolesRequest & WithDefaultIamRoleArn(const char *value)
Definition: ModifyClusterIamRolesRequest.h:266
Aws::Redshift::Model::ModifyClusterIamRolesRequest::AddRemoveIamRoles
ModifyClusterIamRolesRequest & AddRemoveIamRoles(const char *value)
Definition: ModifyClusterIamRolesRequest.h:217
Aws::Redshift::Model::ModifyClusterIamRolesRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: ModifyClusterIamRolesRequest.h:59
AWSVector.h
Aws::Redshift::Model::ModifyClusterIamRolesRequest::WithClusterIdentifier
ModifyClusterIamRolesRequest & WithClusterIdentifier(const Aws::String &value)
Definition: ModifyClusterIamRolesRequest.h:77
Aws::Redshift::Model::ModifyClusterIamRolesRequest::RemoveIamRolesHasBeenSet
bool RemoveIamRolesHasBeenSet() const
Definition: ModifyClusterIamRolesRequest.h:168
Aws::Redshift::Model::ModifyClusterIamRolesRequest::SetAddIamRoles
void SetAddIamRoles(Aws::Vector< Aws::String > &&value)
Definition: ModifyClusterIamRolesRequest.h:118
Aws::Redshift::Model::ModifyClusterIamRolesRequest::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: ModifyClusterIamRolesRequest.h:53
Aws::Redshift::Model::ModifyClusterIamRolesRequest::SetDefaultIamRoleArn
void SetDefaultIamRoleArn(const char *value)
Definition: ModifyClusterIamRolesRequest.h:248
Aws::Redshift::Model::ModifyClusterIamRolesRequest::WithDefaultIamRoleArn
ModifyClusterIamRolesRequest & WithDefaultIamRoleArn(const Aws::String &value)
Definition: ModifyClusterIamRolesRequest.h:254
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::ModifyClusterIamRolesRequest::SetRemoveIamRoles
void SetRemoveIamRoles(const Aws::Vector< Aws::String > &value)
Definition: ModifyClusterIamRolesRequest.h:175
Aws::Redshift::Model::ModifyClusterIamRolesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyClusterIamRolesRequest.h:34
Aws::Redshift::Model::ModifyClusterIamRolesRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: ModifyClusterIamRolesRequest.h:47
AWSString.h
Aws::Redshift::Model::ModifyClusterIamRolesRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: ModifyClusterIamRolesRequest.h:65
Aws::Redshift::Model::ModifyClusterIamRolesRequest::DefaultIamRoleArnHasBeenSet
bool DefaultIamRoleArnHasBeenSet() const
Definition: ModifyClusterIamRolesRequest.h:230
Aws::Redshift::Model::ModifyClusterIamRolesRequest::SetDefaultIamRoleArn
void SetDefaultIamRoleArn(Aws::String &&value)
Definition: ModifyClusterIamRolesRequest.h:242
Aws::Redshift::Model::ModifyClusterIamRolesRequest::WithRemoveIamRoles
ModifyClusterIamRolesRequest & WithRemoveIamRoles(const Aws::Vector< Aws::String > &value)
Definition: ModifyClusterIamRolesRequest.h:189
Aws::Redshift::Model::ModifyClusterIamRolesRequest::WithDefaultIamRoleArn
ModifyClusterIamRolesRequest & WithDefaultIamRoleArn(Aws::String &&value)
Definition: ModifyClusterIamRolesRequest.h:260
Aws::Redshift::Model::ModifyClusterIamRolesRequest::AddAddIamRoles
ModifyClusterIamRolesRequest & AddAddIamRoles(const char *value)
Definition: ModifyClusterIamRolesRequest.h:153
Aws::Redshift::Model::ModifyClusterIamRolesRequest::SetDefaultIamRoleArn
void SetDefaultIamRoleArn(const Aws::String &value)
Definition: ModifyClusterIamRolesRequest.h:236
Aws::Redshift::Model::ModifyClusterIamRolesRequest::GetAddIamRoles
const Aws::Vector< Aws::String > & GetAddIamRoles() const
Definition: ModifyClusterIamRolesRequest.h:97
Aws::Redshift::Model::ModifyClusterIamRolesRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: ModifyClusterIamRolesRequest.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::ModifyClusterIamRolesRequest::AddAddIamRoles
ModifyClusterIamRolesRequest & AddAddIamRoles(Aws::String &&value)
Definition: ModifyClusterIamRolesRequest.h:146
Redshift_EXPORTS.h
Aws::Redshift::Model::ModifyClusterIamRolesRequest::WithClusterIdentifier
ModifyClusterIamRolesRequest & WithClusterIdentifier(Aws::String &&value)
Definition: ModifyClusterIamRolesRequest.h:83
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ModifyClusterIamRolesRequest::WithClusterIdentifier
ModifyClusterIamRolesRequest & WithClusterIdentifier(const char *value)
Definition: ModifyClusterIamRolesRequest.h:89
Aws::Redshift::Model::ModifyClusterIamRolesRequest::ModifyClusterIamRolesRequest
ModifyClusterIamRolesRequest()
Aws::Redshift::Model::ModifyClusterIamRolesRequest::AddIamRolesHasBeenSet
bool AddIamRolesHasBeenSet() const
Definition: ModifyClusterIamRolesRequest.h:104
Aws::Redshift::Model::ModifyClusterIamRolesRequest::AddAddIamRoles
ModifyClusterIamRolesRequest & AddAddIamRoles(const Aws::String &value)
Definition: ModifyClusterIamRolesRequest.h:139
Aws::Redshift::Model::ModifyClusterIamRolesRequest::SetAddIamRoles
void SetAddIamRoles(const Aws::Vector< Aws::String > &value)
Definition: ModifyClusterIamRolesRequest.h:111
Aws::Redshift::Model::ModifyClusterIamRolesRequest
Definition: ModifyClusterIamRolesRequest.h:26
Aws::Redshift::Model::ModifyClusterIamRolesRequest::WithAddIamRoles
ModifyClusterIamRolesRequest & WithAddIamRoles(Aws::Vector< Aws::String > &&value)
Definition: ModifyClusterIamRolesRequest.h:132
Aws::Redshift::Model::ModifyClusterIamRolesRequest::SerializePayload
Aws::String SerializePayload() const override