AWS SDK for C++  1.9.108
AWS SDK for C++
OptionVersion.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 
46  inline const Aws::String& GetVersion() const{ return m_version; }
47 
51  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
52 
56  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
57 
61  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
62 
66  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
67 
71  inline OptionVersion& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
72 
76  inline OptionVersion& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
77 
81  inline OptionVersion& WithVersion(const char* value) { SetVersion(value); return *this;}
82 
83 
88  inline bool GetIsDefault() const{ return m_isDefault; }
89 
94  inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
95 
100  inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
101 
106  inline OptionVersion& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
107 
108  private:
109 
110  Aws::String m_version;
111  bool m_versionHasBeenSet;
112 
113  bool m_isDefault;
114  bool m_isDefaultHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace RDS
119 } // namespace Aws
Aws::RDS::Model::OptionVersion::IsDefaultHasBeenSet
bool IsDefaultHasBeenSet() const
Definition: OptionVersion.h:94
Aws::RDS::Model::OptionVersion::SetVersion
void SetVersion(Aws::String &&value)
Definition: OptionVersion.h:61
Aws::RDS::Model::OptionVersion::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::RDS::Model::OptionVersion::WithVersion
OptionVersion & WithVersion(Aws::String &&value)
Definition: OptionVersion.h:76
Aws::ApplicationInsights::Model::CloudWatchEventSource::NOT_SET
@ NOT_SET
Aws::RDS::Model::OptionVersion::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: OptionVersion.h:51
Aws::RDS::Model::OptionVersion
Definition: OptionVersion.h:33
AWSStreamFwd.h
Aws::RDS::Model::OptionVersion::SetIsDefault
void SetIsDefault(bool value)
Definition: OptionVersion.h:100
Aws::RDS::Model::OptionVersion::OptionVersion
OptionVersion()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::RDS::Model::OptionVersion::SetVersion
void SetVersion(const char *value)
Definition: OptionVersion.h:66
RDS_EXPORTS.h
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::RDS::Model::OptionVersion::operator=
OptionVersion & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::OptionVersion::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSString.h
Aws::RDS::Model::OptionVersion::GetVersion
const Aws::String & GetVersion() const
Definition: OptionVersion.h:46
AWS_RDS_API
#define AWS_RDS_API
Definition: RDS_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::RDS::Model::OptionVersion::OptionVersion
OptionVersion(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::RDS::Model::OptionVersion::WithVersion
OptionVersion & WithVersion(const char *value)
Definition: OptionVersion.h:81
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::RDS::Model::OptionVersion::WithIsDefault
OptionVersion & WithIsDefault(bool value)
Definition: OptionVersion.h:106
Aws::RDS::Model::OptionVersion::GetIsDefault
bool GetIsDefault() const
Definition: OptionVersion.h:88
Aws::RDS::Model::OptionVersion::SetVersion
void SetVersion(const Aws::String &value)
Definition: OptionVersion.h:56
Aws::RDS::Model::OptionVersion::WithVersion
OptionVersion & WithVersion(const Aws::String &value)
Definition: OptionVersion.h:71