AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ElasticIpStatus.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/redshift/Redshift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Redshift {
20namespace Model {
21
29 public:
30 AWS_REDSHIFT_API ElasticIpStatus() = default;
31 AWS_REDSHIFT_API ElasticIpStatus(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_REDSHIFT_API ElasticIpStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetElasticIp() const { return m_elasticIp; }
42 inline bool ElasticIpHasBeenSet() const { return m_elasticIpHasBeenSet; }
43 template <typename ElasticIpT = Aws::String>
44 void SetElasticIp(ElasticIpT&& value) {
45 m_elasticIpHasBeenSet = true;
46 m_elasticIp = std::forward<ElasticIpT>(value);
47 }
48 template <typename ElasticIpT = Aws::String>
49 ElasticIpStatus& WithElasticIp(ElasticIpT&& value) {
50 SetElasticIp(std::forward<ElasticIpT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetStatus() const { return m_status; }
60 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
61 template <typename StatusT = Aws::String>
62 void SetStatus(StatusT&& value) {
63 m_statusHasBeenSet = true;
64 m_status = std::forward<StatusT>(value);
65 }
66 template <typename StatusT = Aws::String>
67 ElasticIpStatus& WithStatus(StatusT&& value) {
68 SetStatus(std::forward<StatusT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_elasticIp;
74
75 Aws::String m_status;
76 bool m_elasticIpHasBeenSet = false;
77 bool m_statusHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Redshift
82} // namespace Aws
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ElasticIpStatus & WithStatus(StatusT &&value)
ElasticIpStatus & WithElasticIp(ElasticIpT &&value)
const Aws::String & GetStatus() const
AWS_REDSHIFT_API ElasticIpStatus()=default
AWS_REDSHIFT_API ElasticIpStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetElasticIp(ElasticIpT &&value)
AWS_REDSHIFT_API ElasticIpStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetElasticIp() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream