AWS SDK for C++  1.9.19
AWS SDK for C++
DBInstanceRole.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/rds/RDS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace RDS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
48 
53  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
54 
59  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
60 
65  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
66 
71  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
72 
77  inline DBInstanceRole& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
78 
83  inline DBInstanceRole& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
84 
89  inline DBInstanceRole& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
90 
91 
97  inline const Aws::String& GetFeatureName() const{ return m_featureName; }
98 
104  inline bool FeatureNameHasBeenSet() const { return m_featureNameHasBeenSet; }
105 
111  inline void SetFeatureName(const Aws::String& value) { m_featureNameHasBeenSet = true; m_featureName = value; }
112 
118  inline void SetFeatureName(Aws::String&& value) { m_featureNameHasBeenSet = true; m_featureName = std::move(value); }
119 
125  inline void SetFeatureName(const char* value) { m_featureNameHasBeenSet = true; m_featureName.assign(value); }
126 
132  inline DBInstanceRole& WithFeatureName(const Aws::String& value) { SetFeatureName(value); return *this;}
133 
139  inline DBInstanceRole& WithFeatureName(Aws::String&& value) { SetFeatureName(std::move(value)); return *this;}
140 
146  inline DBInstanceRole& WithFeatureName(const char* value) { SetFeatureName(value); return *this;}
147 
148 
159  inline const Aws::String& GetStatus() const{ return m_status; }
160 
171  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
172 
183  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
184 
195  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
196 
207  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
208 
219  inline DBInstanceRole& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
220 
231  inline DBInstanceRole& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
232 
243  inline DBInstanceRole& WithStatus(const char* value) { SetStatus(value); return *this;}
244 
245  private:
246 
247  Aws::String m_roleArn;
248  bool m_roleArnHasBeenSet;
249 
250  Aws::String m_featureName;
251  bool m_featureNameHasBeenSet;
252 
253  Aws::String m_status;
254  bool m_statusHasBeenSet;
255  };
256 
257 } // namespace Model
258 } // namespace RDS
259 } // namespace Aws
Aws::RDS::Model::DBInstanceRole::DBInstanceRole
DBInstanceRole(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::DBInstanceRole::WithStatus
DBInstanceRole & WithStatus(Aws::String &&value)
Definition: DBInstanceRole.h:231
Aws::RDS::Model::DBInstanceRole::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: DBInstanceRole.h:53
Aws::RDS::Model::DBInstanceRole::WithStatus
DBInstanceRole & WithStatus(const char *value)
Definition: DBInstanceRole.h:243
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::DBInstanceRole::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: DBInstanceRole.h:65
Aws::RDS::Model::DBInstanceRole::GetFeatureName
const Aws::String & GetFeatureName() const
Definition: DBInstanceRole.h:97
AWSStreamFwd.h
Aws::RDS::Model::DBInstanceRole::DBInstanceRole
DBInstanceRole()
Aws::RDS::Model::DBInstanceRole::FeatureNameHasBeenSet
bool FeatureNameHasBeenSet() const
Definition: DBInstanceRole.h:104
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::DBInstanceRole::WithRoleArn
DBInstanceRole & WithRoleArn(const char *value)
Definition: DBInstanceRole.h:89
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::DBInstanceRole::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: DBInstanceRole.h:171
Aws::RDS::Model::DBInstanceRole::SetFeatureName
void SetFeatureName(const char *value)
Definition: DBInstanceRole.h:125
Aws::RDS::Model::DBInstanceRole::GetStatus
const Aws::String & GetStatus() const
Definition: DBInstanceRole.h:159
AWSString.h
Aws::RDS::Model::DBInstanceRole::SetFeatureName
void SetFeatureName(Aws::String &&value)
Definition: DBInstanceRole.h:118
Aws::RDS::Model::DBInstanceRole::WithFeatureName
DBInstanceRole & WithFeatureName(Aws::String &&value)
Definition: DBInstanceRole.h:139
Aws::RDS::Model::DBInstanceRole::SetStatus
void SetStatus(Aws::String &&value)
Definition: DBInstanceRole.h:195
Aws::RDS::Model::DBInstanceRole::WithStatus
DBInstanceRole & WithStatus(const Aws::String &value)
Definition: DBInstanceRole.h:219
Aws::RDS::Model::DBInstanceRole::SetStatus
void SetStatus(const char *value)
Definition: DBInstanceRole.h:207
Aws::RDS::Model::DBInstanceRole::SetFeatureName
void SetFeatureName(const Aws::String &value)
Definition: DBInstanceRole.h:111
Aws::RDS::Model::DBInstanceRole::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws::RDS::Model::DBInstanceRole::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::RDS::Model::DBInstanceRole::SetStatus
void SetStatus(const Aws::String &value)
Definition: DBInstanceRole.h:183
Aws::RDS::Model::DBInstanceRole::SetRoleArn
void SetRoleArn(const char *value)
Definition: DBInstanceRole.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::DBInstanceRole::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: DBInstanceRole.h:59
Aws::RDS::Model::DBInstanceRole::WithFeatureName
DBInstanceRole & WithFeatureName(const char *value)
Definition: DBInstanceRole.h:146
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:171
Aws::RDS::Model::DBInstanceRole::WithRoleArn
DBInstanceRole & WithRoleArn(const Aws::String &value)
Definition: DBInstanceRole.h:77
Aws::RDS::Model::DBInstanceRole::WithRoleArn
DBInstanceRole & WithRoleArn(Aws::String &&value)
Definition: DBInstanceRole.h:83
Aws::RDS::Model::DBInstanceRole::operator=
DBInstanceRole & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::DBInstanceRole::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: DBInstanceRole.h:47
Aws::RDS::Model::DBInstanceRole::WithFeatureName
DBInstanceRole & WithFeatureName(const Aws::String &value)
Definition: DBInstanceRole.h:132
Aws::RDS::Model::DBInstanceRole
Definition: DBInstanceRole.h:33