AWS SDK for C++  1.9.66
AWS SDK for C++
PtrUpdateStatus.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_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 EC2
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& GetValue() const{ return m_value; }
47 
51  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
52 
56  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
57 
61  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
62 
66  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
67 
71  inline PtrUpdateStatus& WithValue(const Aws::String& value) { SetValue(value); return *this;}
72 
76  inline PtrUpdateStatus& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
77 
81  inline PtrUpdateStatus& WithValue(const char* value) { SetValue(value); return *this;}
82 
83 
87  inline const Aws::String& GetStatus() const{ return m_status; }
88 
92  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
93 
97  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
98 
102  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
103 
107  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
108 
112  inline PtrUpdateStatus& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
113 
117  inline PtrUpdateStatus& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
118 
122  inline PtrUpdateStatus& WithStatus(const char* value) { SetStatus(value); return *this;}
123 
124 
128  inline const Aws::String& GetReason() const{ return m_reason; }
129 
133  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
134 
138  inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
139 
143  inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
144 
148  inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
149 
153  inline PtrUpdateStatus& WithReason(const Aws::String& value) { SetReason(value); return *this;}
154 
158  inline PtrUpdateStatus& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
159 
163  inline PtrUpdateStatus& WithReason(const char* value) { SetReason(value); return *this;}
164 
165  private:
166 
167  Aws::String m_value;
168  bool m_valueHasBeenSet;
169 
170  Aws::String m_status;
171  bool m_statusHasBeenSet;
172 
173  Aws::String m_reason;
174  bool m_reasonHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace EC2
179 } // namespace Aws
Aws::EC2::Model::PtrUpdateStatus::SetReason
void SetReason(Aws::String &&value)
Definition: PtrUpdateStatus.h:143
Aws::EC2::Model::PtrUpdateStatus::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::PtrUpdateStatus::WithReason
PtrUpdateStatus & WithReason(Aws::String &&value)
Definition: PtrUpdateStatus.h:158
Aws::EC2::Model::PtrUpdateStatus::GetReason
const Aws::String & GetReason() const
Definition: PtrUpdateStatus.h:128
Aws::EC2::Model::PtrUpdateStatus::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: PtrUpdateStatus.h:51
Aws::EC2::Model::PtrUpdateStatus::WithStatus
PtrUpdateStatus & WithStatus(Aws::String &&value)
Definition: PtrUpdateStatus.h:117
Aws::EC2::Model::PtrUpdateStatus::GetValue
const Aws::String & GetValue() const
Definition: PtrUpdateStatus.h:46
Aws::EC2::Model::PtrUpdateStatus::GetStatus
const Aws::String & GetStatus() const
Definition: PtrUpdateStatus.h:87
Aws::EC2::Model::PtrUpdateStatus::PtrUpdateStatus
PtrUpdateStatus(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PtrUpdateStatus::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSStreamFwd.h
Aws::EC2::Model::PtrUpdateStatus::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: PtrUpdateStatus.h:92
Aws::EC2::Model::PtrUpdateStatus::WithReason
PtrUpdateStatus & WithReason(const Aws::String &value)
Definition: PtrUpdateStatus.h:153
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PtrUpdateStatus::SetValue
void SetValue(const char *value)
Definition: PtrUpdateStatus.h:66
Aws::EC2::Model::PtrUpdateStatus::WithReason
PtrUpdateStatus & WithReason(const char *value)
Definition: PtrUpdateStatus.h:163
Aws::EC2::Model::PtrUpdateStatus::PtrUpdateStatus
PtrUpdateStatus()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PtrUpdateStatus::WithStatus
PtrUpdateStatus & WithStatus(const char *value)
Definition: PtrUpdateStatus.h:122
Aws::EC2::Model::PtrUpdateStatus::SetStatus
void SetStatus(const Aws::String &value)
Definition: PtrUpdateStatus.h:97
Aws::EC2::Model::PtrUpdateStatus::SetReason
void SetReason(const Aws::String &value)
Definition: PtrUpdateStatus.h:138
Aws::EC2::Model::PtrUpdateStatus::SetReason
void SetReason(const char *value)
Definition: PtrUpdateStatus.h:148
AWSString.h
Aws::EC2::Model::PtrUpdateStatus
Definition: PtrUpdateStatus.h:33
Aws::EC2::Model::PtrUpdateStatus::SetStatus
void SetStatus(const char *value)
Definition: PtrUpdateStatus.h:107
Aws::EC2::Model::PtrUpdateStatus::WithValue
PtrUpdateStatus & WithValue(const char *value)
Definition: PtrUpdateStatus.h:81
Aws::EC2::Model::PtrUpdateStatus::WithValue
PtrUpdateStatus & WithValue(Aws::String &&value)
Definition: PtrUpdateStatus.h:76
Aws::EC2::Model::PtrUpdateStatus::WithValue
PtrUpdateStatus & WithValue(const Aws::String &value)
Definition: PtrUpdateStatus.h:71
Aws::EC2::Model::PtrUpdateStatus::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: PtrUpdateStatus.h:133
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PtrUpdateStatus::SetValue
void SetValue(Aws::String &&value)
Definition: PtrUpdateStatus.h:61
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::EC2::Model::PtrUpdateStatus::operator=
PtrUpdateStatus & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PtrUpdateStatus::WithStatus
PtrUpdateStatus & WithStatus(const Aws::String &value)
Definition: PtrUpdateStatus.h:112
Aws::EC2::Model::PtrUpdateStatus::SetStatus
void SetStatus(Aws::String &&value)
Definition: PtrUpdateStatus.h:102
EC2_EXPORTS.h
Aws::EC2::Model::PtrUpdateStatus::SetValue
void SetValue(const Aws::String &value)
Definition: PtrUpdateStatus.h:56