AWS SDK for C++  1.9.108
AWS SDK for C++
AddRoleToDBInstanceRequest.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 "AddRoleToDBInstance"; }
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& GetDBInstanceIdentifier() const{ return m_dBInstanceIdentifier; }
43 
47  inline bool DBInstanceIdentifierHasBeenSet() const { return m_dBInstanceIdentifierHasBeenSet; }
48 
52  inline void SetDBInstanceIdentifier(const Aws::String& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = value; }
53 
57  inline void SetDBInstanceIdentifier(Aws::String&& value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier = std::move(value); }
58 
62  inline void SetDBInstanceIdentifier(const char* value) { m_dBInstanceIdentifierHasBeenSet = true; m_dBInstanceIdentifier.assign(value); }
63 
67  inline AddRoleToDBInstanceRequest& WithDBInstanceIdentifier(const Aws::String& value) { SetDBInstanceIdentifier(value); return *this;}
68 
72  inline AddRoleToDBInstanceRequest& WithDBInstanceIdentifier(Aws::String&& value) { SetDBInstanceIdentifier(std::move(value)); return *this;}
73 
77  inline AddRoleToDBInstanceRequest& WithDBInstanceIdentifier(const char* value) { SetDBInstanceIdentifier(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 AddRoleToDBInstanceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
121 
127  inline AddRoleToDBInstanceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
128 
134  inline AddRoleToDBInstanceRequest& 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 AddRoleToDBInstanceRequest& WithFeatureName(const Aws::String& value) { SetFeatureName(value); return *this;}
178 
184  inline AddRoleToDBInstanceRequest& WithFeatureName(Aws::String&& value) { SetFeatureName(std::move(value)); return *this;}
185 
191  inline AddRoleToDBInstanceRequest& WithFeatureName(const char* value) { SetFeatureName(value); return *this;}
192 
193  private:
194 
195  Aws::String m_dBInstanceIdentifier;
196  bool m_dBInstanceIdentifierHasBeenSet;
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::AddRoleToDBInstanceRequest::GetDBInstanceIdentifier
const Aws::String & GetDBInstanceIdentifier() const
Definition: AddRoleToDBInstanceRequest.h:42
Aws::RDS::Model::AddRoleToDBInstanceRequest::SetFeatureName
void SetFeatureName(Aws::String &&value)
Definition: AddRoleToDBInstanceRequest.h:163
Aws::Http::URI
Definition: URI.h:32
Aws::RDS::Model::AddRoleToDBInstanceRequest::WithRoleArn
AddRoleToDBInstanceRequest & WithRoleArn(Aws::String &&value)
Definition: AddRoleToDBInstanceRequest.h:127
Aws::RDS::Model::AddRoleToDBInstanceRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: AddRoleToDBInstanceRequest.h:106
Aws::RDS::Model::AddRoleToDBInstanceRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: AddRoleToDBInstanceRequest.h:99
Aws::RDS::Model::AddRoleToDBInstanceRequest::WithRoleArn
AddRoleToDBInstanceRequest & WithRoleArn(const Aws::String &value)
Definition: AddRoleToDBInstanceRequest.h:120
Aws::RDS::Model::AddRoleToDBInstanceRequest::WithDBInstanceIdentifier
AddRoleToDBInstanceRequest & WithDBInstanceIdentifier(Aws::String &&value)
Definition: AddRoleToDBInstanceRequest.h:72
Aws::RDS::Model::AddRoleToDBInstanceRequest::SetFeatureName
void SetFeatureName(const char *value)
Definition: AddRoleToDBInstanceRequest.h:170
Aws::RDS::Model::AddRoleToDBInstanceRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: AddRoleToDBInstanceRequest.h:92
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::AddRoleToDBInstanceRequest::FeatureNameHasBeenSet
bool FeatureNameHasBeenSet() const
Definition: AddRoleToDBInstanceRequest.h:149
Aws::RDS::Model::AddRoleToDBInstanceRequest::WithRoleArn
AddRoleToDBInstanceRequest & WithRoleArn(const char *value)
Definition: AddRoleToDBInstanceRequest.h:134
Aws::RDS::Model::AddRoleToDBInstanceRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: AddRoleToDBInstanceRequest.h:85
Aws::RDS::Model::AddRoleToDBInstanceRequest::SetFeatureName
void SetFeatureName(const Aws::String &value)
Definition: AddRoleToDBInstanceRequest.h:156
Aws::RDS::Model::AddRoleToDBInstanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RDS::Model::AddRoleToDBInstanceRequest::GetFeatureName
const Aws::String & GetFeatureName() const
Definition: AddRoleToDBInstanceRequest.h:142
RDS_EXPORTS.h
Aws::RDS::Model::AddRoleToDBInstanceRequest::AddRoleToDBInstanceRequest
AddRoleToDBInstanceRequest()
Aws::RDS::Model::AddRoleToDBInstanceRequest::WithFeatureName
AddRoleToDBInstanceRequest & WithFeatureName(Aws::String &&value)
Definition: AddRoleToDBInstanceRequest.h:184
Aws::RDS::Model::AddRoleToDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(Aws::String &&value)
Definition: AddRoleToDBInstanceRequest.h:57
Aws::RDS::Model::AddRoleToDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const Aws::String &value)
Definition: AddRoleToDBInstanceRequest.h:52
Aws::RDS::Model::AddRoleToDBInstanceRequest::WithDBInstanceIdentifier
AddRoleToDBInstanceRequest & WithDBInstanceIdentifier(const char *value)
Definition: AddRoleToDBInstanceRequest.h:77
AWSString.h
Aws::RDS::Model::AddRoleToDBInstanceRequest::SetDBInstanceIdentifier
void SetDBInstanceIdentifier(const char *value)
Definition: AddRoleToDBInstanceRequest.h:62
Aws::RDS::Model::AddRoleToDBInstanceRequest::WithDBInstanceIdentifier
AddRoleToDBInstanceRequest & WithDBInstanceIdentifier(const Aws::String &value)
Definition: AddRoleToDBInstanceRequest.h:67
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::AddRoleToDBInstanceRequest::DBInstanceIdentifierHasBeenSet
bool DBInstanceIdentifierHasBeenSet() const
Definition: AddRoleToDBInstanceRequest.h:47
Aws::RDS::Model::AddRoleToDBInstanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddRoleToDBInstanceRequest.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RDS::Model::AddRoleToDBInstanceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::RDS::Model::AddRoleToDBInstanceRequest::WithFeatureName
AddRoleToDBInstanceRequest & WithFeatureName(const Aws::String &value)
Definition: AddRoleToDBInstanceRequest.h:177
RDSRequest.h
Aws::RDS::RDSRequest
Definition: RDSRequest.h:17
Aws::RDS::Model::AddRoleToDBInstanceRequest
Definition: AddRoleToDBInstanceRequest.h:22
Aws::RDS::Model::AddRoleToDBInstanceRequest::WithFeatureName
AddRoleToDBInstanceRequest & WithFeatureName(const char *value)
Definition: AddRoleToDBInstanceRequest.h:191
Aws::RDS::Model::AddRoleToDBInstanceRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: AddRoleToDBInstanceRequest.h:113