AWS SDK for C++  1.9.71
AWS SDK for C++
VolumeStatusAction.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 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
46  inline const Aws::String& GetCode() const{ return m_code; }
47 
52  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
53 
58  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
59 
64  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
65 
70  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
71 
76  inline VolumeStatusAction& WithCode(const Aws::String& value) { SetCode(value); return *this;}
77 
82  inline VolumeStatusAction& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
83 
88  inline VolumeStatusAction& WithCode(const char* value) { SetCode(value); return *this;}
89 
90 
94  inline const Aws::String& GetDescription() const{ return m_description; }
95 
99  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 
104  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
105 
109  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
110 
114  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
115 
119  inline VolumeStatusAction& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
120 
124  inline VolumeStatusAction& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
125 
129  inline VolumeStatusAction& WithDescription(const char* value) { SetDescription(value); return *this;}
130 
131 
135  inline const Aws::String& GetEventId() const{ return m_eventId; }
136 
140  inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; }
141 
145  inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
146 
150  inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); }
151 
155  inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
156 
160  inline VolumeStatusAction& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
161 
165  inline VolumeStatusAction& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;}
166 
170  inline VolumeStatusAction& WithEventId(const char* value) { SetEventId(value); return *this;}
171 
172 
176  inline const Aws::String& GetEventType() const{ return m_eventType; }
177 
181  inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
182 
186  inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
187 
191  inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
192 
196  inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
197 
201  inline VolumeStatusAction& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
202 
206  inline VolumeStatusAction& WithEventType(Aws::String&& value) { SetEventType(std::move(value)); return *this;}
207 
211  inline VolumeStatusAction& WithEventType(const char* value) { SetEventType(value); return *this;}
212 
213  private:
214 
215  Aws::String m_code;
216  bool m_codeHasBeenSet;
217 
218  Aws::String m_description;
219  bool m_descriptionHasBeenSet;
220 
221  Aws::String m_eventId;
222  bool m_eventIdHasBeenSet;
223 
224  Aws::String m_eventType;
225  bool m_eventTypeHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace EC2
230 } // namespace Aws
Aws::EC2::Model::VolumeStatusAction::GetEventId
const Aws::String & GetEventId() const
Definition: VolumeStatusAction.h:135
Aws::EC2::Model::VolumeStatusAction::SetCode
void SetCode(Aws::String &&value)
Definition: VolumeStatusAction.h:64
Aws::EC2::Model::VolumeStatusAction::SetDescription
void SetDescription(const Aws::String &value)
Definition: VolumeStatusAction.h:104
Aws::EC2::Model::VolumeStatusAction::WithDescription
VolumeStatusAction & WithDescription(Aws::String &&value)
Definition: VolumeStatusAction.h:124
Aws::EC2::Model::VolumeStatusAction::SetEventId
void SetEventId(const Aws::String &value)
Definition: VolumeStatusAction.h:145
Aws::EC2::Model::VolumeStatusAction::VolumeStatusAction
VolumeStatusAction()
Aws::EC2::Model::VolumeStatusAction::WithEventType
VolumeStatusAction & WithEventType(Aws::String &&value)
Definition: VolumeStatusAction.h:206
Aws::EC2::Model::VolumeStatusAction::SetEventType
void SetEventType(Aws::String &&value)
Definition: VolumeStatusAction.h:191
Aws::EC2::Model::VolumeStatusAction::WithCode
VolumeStatusAction & WithCode(const char *value)
Definition: VolumeStatusAction.h:88
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::VolumeStatusAction::WithCode
VolumeStatusAction & WithCode(Aws::String &&value)
Definition: VolumeStatusAction.h:82
Aws::EC2::Model::VolumeStatusAction::SetEventId
void SetEventId(Aws::String &&value)
Definition: VolumeStatusAction.h:150
AWSStreamFwd.h
Aws::EC2::Model::VolumeStatusAction::WithEventId
VolumeStatusAction & WithEventId(const Aws::String &value)
Definition: VolumeStatusAction.h:160
Aws::EC2::Model::VolumeStatusAction::WithCode
VolumeStatusAction & WithCode(const Aws::String &value)
Definition: VolumeStatusAction.h:76
Aws::EC2::Model::VolumeStatusAction::SetDescription
void SetDescription(Aws::String &&value)
Definition: VolumeStatusAction.h:109
Aws::EC2::Model::VolumeStatusAction::EventIdHasBeenSet
bool EventIdHasBeenSet() const
Definition: VolumeStatusAction.h:140
Aws::EC2::Model::VolumeStatusAction::WithEventId
VolumeStatusAction & WithEventId(Aws::String &&value)
Definition: VolumeStatusAction.h:165
Aws::EC2::Model::VolumeStatusAction::GetCode
const Aws::String & GetCode() const
Definition: VolumeStatusAction.h:46
Aws::EC2::Model::VolumeStatusAction
Definition: VolumeStatusAction.h:32
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::VolumeStatusAction::GetDescription
const Aws::String & GetDescription() const
Definition: VolumeStatusAction.h:94
Aws::EC2::Model::VolumeStatusAction::SetCode
void SetCode(const Aws::String &value)
Definition: VolumeStatusAction.h:58
Aws::EC2::Model::VolumeStatusAction::EventTypeHasBeenSet
bool EventTypeHasBeenSet() const
Definition: VolumeStatusAction.h:181
Aws::EC2::Model::VolumeStatusAction::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: VolumeStatusAction.h:52
Aws::EC2::Model::VolumeStatusAction::GetEventType
const Aws::String & GetEventType() const
Definition: VolumeStatusAction.h:176
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::VolumeStatusAction::SetCode
void SetCode(const char *value)
Definition: VolumeStatusAction.h:70
AWSString.h
Aws::EC2::Model::VolumeStatusAction::WithDescription
VolumeStatusAction & WithDescription(const char *value)
Definition: VolumeStatusAction.h:129
Aws::EC2::Model::VolumeStatusAction::VolumeStatusAction
VolumeStatusAction(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VolumeStatusAction::SetDescription
void SetDescription(const char *value)
Definition: VolumeStatusAction.h:114
Aws::EC2::Model::VolumeStatusAction::SetEventType
void SetEventType(const char *value)
Definition: VolumeStatusAction.h:196
Aws::EC2::Model::VolumeStatusAction::operator=
VolumeStatusAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::VolumeStatusAction::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: VolumeStatusAction.h:99
Aws::EC2::Model::VolumeStatusAction::WithDescription
VolumeStatusAction & WithDescription(const Aws::String &value)
Definition: VolumeStatusAction.h:119
Aws::EC2::Model::VolumeStatusAction::WithEventType
VolumeStatusAction & WithEventType(const char *value)
Definition: VolumeStatusAction.h:211
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::VolumeStatusAction::SetEventType
void SetEventType(const Aws::String &value)
Definition: VolumeStatusAction.h:186
Aws::EC2::Model::VolumeStatusAction::WithEventId
VolumeStatusAction & WithEventId(const char *value)
Definition: VolumeStatusAction.h:170
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::VolumeStatusAction::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::VolumeStatusAction::SetEventId
void SetEventId(const char *value)
Definition: VolumeStatusAction.h:155
Aws::EC2::Model::VolumeStatusAction::WithEventType
VolumeStatusAction & WithEventType(const Aws::String &value)
Definition: VolumeStatusAction.h:201
EC2_EXPORTS.h
Aws::EC2::Model::VolumeStatusAction::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const