AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DBInstanceRole.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS {
20namespace Model {
21
29 public:
30 AWS_RDS_API DBInstanceRole() = default;
31 AWS_RDS_API DBInstanceRole(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
42 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
43 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
44 template <typename RoleArnT = Aws::String>
45 void SetRoleArn(RoleArnT&& value) {
46 m_roleArnHasBeenSet = true;
47 m_roleArn = std::forward<RoleArnT>(value);
48 }
49 template <typename RoleArnT = Aws::String>
50 DBInstanceRole& WithRoleArn(RoleArnT&& value) {
51 SetRoleArn(std::forward<RoleArnT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetFeatureName() const { return m_featureName; }
63 inline bool FeatureNameHasBeenSet() const { return m_featureNameHasBeenSet; }
64 template <typename FeatureNameT = Aws::String>
65 void SetFeatureName(FeatureNameT&& value) {
66 m_featureNameHasBeenSet = true;
67 m_featureName = std::forward<FeatureNameT>(value);
68 }
69 template <typename FeatureNameT = Aws::String>
70 DBInstanceRole& WithFeatureName(FeatureNameT&& value) {
71 SetFeatureName(std::forward<FeatureNameT>(value));
72 return *this;
73 }
75
77
88 inline const Aws::String& GetStatus() const { return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 template <typename StatusT = Aws::String>
91 void SetStatus(StatusT&& value) {
92 m_statusHasBeenSet = true;
93 m_status = std::forward<StatusT>(value);
94 }
95 template <typename StatusT = Aws::String>
96 DBInstanceRole& WithStatus(StatusT&& value) {
97 SetStatus(std::forward<StatusT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_roleArn;
103
104 Aws::String m_featureName;
105
106 Aws::String m_status;
107 bool m_roleArnHasBeenSet = false;
108 bool m_featureNameHasBeenSet = false;
109 bool m_statusHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace RDS
114} // namespace Aws
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetFeatureName() const
void SetRoleArn(RoleArnT &&value)
DBInstanceRole & WithFeatureName(FeatureNameT &&value)
DBInstanceRole & WithStatus(StatusT &&value)
AWS_RDS_API DBInstanceRole(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetStatus() const
void SetFeatureName(FeatureNameT &&value)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetRoleArn() const
void SetStatus(StatusT &&value)
DBInstanceRole & WithRoleArn(RoleArnT &&value)
AWS_RDS_API DBInstanceRole & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API DBInstanceRole()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream