AWS SDK for C++  1.9.109
AWS SDK for C++
AddRoleToDBClusterRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
8 #include <aws/rds/RDSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace RDS
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 "AddRoleToDBCluster"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; }
43 
47  inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; }
48 
52  inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; }
53 
57  inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); }
58 
62  inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); }
63 
67  inline AddRoleToDBClusterRequest& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;}
68 
72  inline AddRoleToDBClusterRequest& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;}
73 
77  inline AddRoleToDBClusterRequest& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;}
78 
79 
85  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
86 
92  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
93 
99  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
100 
106  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
107 
113  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
114 
120  inline AddRoleToDBClusterRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
121 
127  inline AddRoleToDBClusterRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
128 
134  inline AddRoleToDBClusterRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
135 
136 
142  inline const Aws::String& GetFeatureName() const{ return m_featureName; }
143 
149  inline bool FeatureNameHasBeenSet() const { return m_featureNameHasBeenSet; }
150 
156  inline void SetFeatureName(const Aws::String& value) { m_featureNameHasBeenSet = true; m_featureName = value; }
157 
163  inline void SetFeatureName(Aws::String&& value) { m_featureNameHasBeenSet = true; m_featureName = std::move(value); }
164 
170  inline void SetFeatureName(const char* value) { m_featureNameHasBeenSet = true; m_featureName.assign(value); }
171 
177  inline AddRoleToDBClusterRequest& WithFeatureName(const Aws::String& value) { SetFeatureName(value); return *this;}
178 
184  inline AddRoleToDBClusterRequest& WithFeatureName(Aws::String&& value) { SetFeatureName(std::move(value)); return *this;}
185 
191  inline AddRoleToDBClusterRequest& WithFeatureName(const char* value) { SetFeatureName(value); return *this;}
192 
193  private:
194 
195  Aws::String m_dBClusterIdentifier;
196  bool m_dBClusterIdentifierHasBeenSet;
197 
198  Aws::String m_roleArn;
199  bool m_roleArnHasBeenSet;
200 
201  Aws::String m_featureName;
202  bool m_featureNameHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace RDS
207 } // namespace Aws
Aws::RDS::Model::AddRoleToDBClusterRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: AddRoleToDBClusterRequest.h:99
Aws::RDS::Model::AddRoleToDBClusterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::AddRoleToDBClusterRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::AddRoleToDBClusterRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: AddRoleToDBClusterRequest.h:113
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::AddRoleToDBClusterRequest::AddRoleToDBClusterRequest
AddRoleToDBClusterRequest()
Aws::RDS::Model::AddRoleToDBClusterRequest::WithRoleArn
AddRoleToDBClusterRequest & WithRoleArn(const Aws::String &value)
Definition: AddRoleToDBClusterRequest.h:120
Aws::RDS::Model::AddRoleToDBClusterRequest::WithFeatureName
AddRoleToDBClusterRequest & WithFeatureName(const Aws::String &value)
Definition: AddRoleToDBClusterRequest.h:177
Aws::RDS::Model::AddRoleToDBClusterRequest::WithDBClusterIdentifier
AddRoleToDBClusterRequest & WithDBClusterIdentifier(const char *value)
Definition: AddRoleToDBClusterRequest.h:77
Aws::RDS::Model::AddRoleToDBClusterRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: AddRoleToDBClusterRequest.h:106
Aws::RDS::Model::AddRoleToDBClusterRequest::FeatureNameHasBeenSet
bool FeatureNameHasBeenSet() const
Definition: AddRoleToDBClusterRequest.h:149
Aws::RDS::Model::AddRoleToDBClusterRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: AddRoleToDBClusterRequest.h:85
Aws::RDS::Model::AddRoleToDBClusterRequest::DBClusterIdentifierHasBeenSet
bool DBClusterIdentifierHasBeenSet() const
Definition: AddRoleToDBClusterRequest.h:47
RDS_EXPORTS.h
Aws::RDS::Model::AddRoleToDBClusterRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(const Aws::String &value)
Definition: AddRoleToDBClusterRequest.h:52
AWSString.h
Aws::RDS::Model::AddRoleToDBClusterRequest::WithDBClusterIdentifier
AddRoleToDBClusterRequest & WithDBClusterIdentifier(const Aws::String &value)
Definition: AddRoleToDBClusterRequest.h:67
Aws::RDS::Model::AddRoleToDBClusterRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: AddRoleToDBClusterRequest.h:92
Aws::RDS::Model::AddRoleToDBClusterRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(Aws::String &&value)
Definition: AddRoleToDBClusterRequest.h:57
Aws::RDS::Model::AddRoleToDBClusterRequest::WithRoleArn
AddRoleToDBClusterRequest & WithRoleArn(const char *value)
Definition: AddRoleToDBClusterRequest.h:134
Aws::RDS::Model::AddRoleToDBClusterRequest::WithFeatureName
AddRoleToDBClusterRequest & WithFeatureName(const char *value)
Definition: AddRoleToDBClusterRequest.h:191
Aws::RDS::Model::AddRoleToDBClusterRequest::WithRoleArn
AddRoleToDBClusterRequest & WithRoleArn(Aws::String &&value)
Definition: AddRoleToDBClusterRequest.h:127
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::AddRoleToDBClusterRequest::SetFeatureName
void SetFeatureName(const Aws::String &value)
Definition: AddRoleToDBClusterRequest.h:156
Aws::RDS::Model::AddRoleToDBClusterRequest::WithFeatureName
AddRoleToDBClusterRequest & WithFeatureName(Aws::String &&value)
Definition: AddRoleToDBClusterRequest.h:184
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::AddRoleToDBClusterRequest::SetFeatureName
void SetFeatureName(Aws::String &&value)
Definition: AddRoleToDBClusterRequest.h:163
Aws::RDS::Model::AddRoleToDBClusterRequest::SetDBClusterIdentifier
void SetDBClusterIdentifier(const char *value)
Definition: AddRoleToDBClusterRequest.h:62
Aws::RDS::Model::AddRoleToDBClusterRequest::GetFeatureName
const Aws::String & GetFeatureName() const
Definition: AddRoleToDBClusterRequest.h:142
Aws::RDS::Model::AddRoleToDBClusterRequest
Definition: AddRoleToDBClusterRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RDSRequest.h
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::AddRoleToDBClusterRequest::WithDBClusterIdentifier
AddRoleToDBClusterRequest & WithDBClusterIdentifier(Aws::String &&value)
Definition: AddRoleToDBClusterRequest.h:72
Aws::RDS::Model::AddRoleToDBClusterRequest::SetFeatureName
void SetFeatureName(const char *value)
Definition: AddRoleToDBClusterRequest.h:170
Aws::RDS::Model::AddRoleToDBClusterRequest::GetDBClusterIdentifier
const Aws::String & GetDBClusterIdentifier() const
Definition: AddRoleToDBClusterRequest.h:42
Aws::RDS::Model::AddRoleToDBClusterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddRoleToDBClusterRequest.h:30