AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyClusterIamRolesRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_REDSHIFT_API ModifyClusterIamRolesRequest();
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_REDSHIFT_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40
41 public:
42
44
48 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
49 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
50 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
51 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
52 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
54 inline ModifyClusterIamRolesRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
55 inline ModifyClusterIamRolesRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
57
59
63 inline const Aws::Vector<Aws::String>& GetAddIamRoles() const{ return m_addIamRoles; }
64 inline bool AddIamRolesHasBeenSet() const { return m_addIamRolesHasBeenSet; }
65 inline void SetAddIamRoles(const Aws::Vector<Aws::String>& value) { m_addIamRolesHasBeenSet = true; m_addIamRoles = value; }
66 inline void SetAddIamRoles(Aws::Vector<Aws::String>&& value) { m_addIamRolesHasBeenSet = true; m_addIamRoles = std::move(value); }
68 inline ModifyClusterIamRolesRequest& WithAddIamRoles(Aws::Vector<Aws::String>&& value) { SetAddIamRoles(std::move(value)); return *this;}
69 inline ModifyClusterIamRolesRequest& AddAddIamRoles(const Aws::String& value) { m_addIamRolesHasBeenSet = true; m_addIamRoles.push_back(value); return *this; }
70 inline ModifyClusterIamRolesRequest& AddAddIamRoles(Aws::String&& value) { m_addIamRolesHasBeenSet = true; m_addIamRoles.push_back(std::move(value)); return *this; }
71 inline ModifyClusterIamRolesRequest& AddAddIamRoles(const char* value) { m_addIamRolesHasBeenSet = true; m_addIamRoles.push_back(value); return *this; }
73
75
78 inline const Aws::Vector<Aws::String>& GetRemoveIamRoles() const{ return m_removeIamRoles; }
79 inline bool RemoveIamRolesHasBeenSet() const { return m_removeIamRolesHasBeenSet; }
80 inline void SetRemoveIamRoles(const Aws::Vector<Aws::String>& value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles = value; }
81 inline void SetRemoveIamRoles(Aws::Vector<Aws::String>&& value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles = std::move(value); }
84 inline ModifyClusterIamRolesRequest& AddRemoveIamRoles(const Aws::String& value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles.push_back(value); return *this; }
85 inline ModifyClusterIamRolesRequest& AddRemoveIamRoles(Aws::String&& value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles.push_back(std::move(value)); return *this; }
86 inline ModifyClusterIamRolesRequest& AddRemoveIamRoles(const char* value) { m_removeIamRolesHasBeenSet = true; m_removeIamRoles.push_back(value); return *this; }
88
90
94 inline const Aws::String& GetDefaultIamRoleArn() const{ return m_defaultIamRoleArn; }
95 inline bool DefaultIamRoleArnHasBeenSet() const { return m_defaultIamRoleArnHasBeenSet; }
96 inline void SetDefaultIamRoleArn(const Aws::String& value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn = value; }
97 inline void SetDefaultIamRoleArn(Aws::String&& value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn = std::move(value); }
98 inline void SetDefaultIamRoleArn(const char* value) { m_defaultIamRoleArnHasBeenSet = true; m_defaultIamRoleArn.assign(value); }
100 inline ModifyClusterIamRolesRequest& WithDefaultIamRoleArn(Aws::String&& value) { SetDefaultIamRoleArn(std::move(value)); return *this;}
101 inline ModifyClusterIamRolesRequest& WithDefaultIamRoleArn(const char* value) { SetDefaultIamRoleArn(value); return *this;}
103 private:
104
105 Aws::String m_clusterIdentifier;
106 bool m_clusterIdentifierHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_addIamRoles;
109 bool m_addIamRolesHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_removeIamRoles;
112 bool m_removeIamRolesHasBeenSet = false;
113
114 Aws::String m_defaultIamRoleArn;
115 bool m_defaultIamRoleArnHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Redshift
120} // namespace Aws
ModifyClusterIamRolesRequest & WithClusterIdentifier(const Aws::String &value)
ModifyClusterIamRolesRequest & AddRemoveIamRoles(Aws::String &&value)
void SetAddIamRoles(const Aws::Vector< Aws::String > &value)
void SetAddIamRoles(Aws::Vector< Aws::String > &&value)
ModifyClusterIamRolesRequest & WithAddIamRoles(Aws::Vector< Aws::String > &&value)
ModifyClusterIamRolesRequest & AddAddIamRoles(const char *value)
ModifyClusterIamRolesRequest & AddRemoveIamRoles(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAddIamRoles() const
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetRemoveIamRoles(const Aws::Vector< Aws::String > &value)
ModifyClusterIamRolesRequest & WithClusterIdentifier(Aws::String &&value)
ModifyClusterIamRolesRequest & AddRemoveIamRoles(const char *value)
ModifyClusterIamRolesRequest & WithClusterIdentifier(const char *value)
ModifyClusterIamRolesRequest & WithDefaultIamRoleArn(const Aws::String &value)
ModifyClusterIamRolesRequest & WithRemoveIamRoles(Aws::Vector< Aws::String > &&value)
ModifyClusterIamRolesRequest & AddAddIamRoles(const Aws::String &value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
ModifyClusterIamRolesRequest & WithAddIamRoles(const Aws::Vector< Aws::String > &value)
ModifyClusterIamRolesRequest & AddAddIamRoles(Aws::String &&value)
ModifyClusterIamRolesRequest & WithDefaultIamRoleArn(const char *value)
ModifyClusterIamRolesRequest & WithDefaultIamRoleArn(Aws::String &&value)
const Aws::Vector< Aws::String > & GetRemoveIamRoles() const
void SetRemoveIamRoles(Aws::Vector< Aws::String > &&value)
ModifyClusterIamRolesRequest & WithRemoveIamRoles(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector