AWS SDK for C++  0.14.3
AWS SDK for C++
VolumeStatusAction.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace EC2
30 {
31 namespace Model
32 {
33 
38  {
39  public:
42  VolumeStatusAction& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45  void OutputToStream(Aws::OStream& oStream, const char* location) const;
46 
51  inline const Aws::String& GetCode() const{ return m_code; }
52 
57  inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
58 
63  inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = value; }
64 
69  inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
70 
75  inline VolumeStatusAction& WithCode(const Aws::String& value) { SetCode(value); return *this;}
76 
81  inline VolumeStatusAction& WithCode(Aws::String&& value) { SetCode(value); return *this;}
82 
87  inline VolumeStatusAction& WithCode(const char* value) { SetCode(value); return *this;}
88 
92  inline const Aws::String& GetDescription() const{ return m_description; }
93 
97  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
98 
102  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
103 
107  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
108 
112  inline VolumeStatusAction& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
113 
117  inline VolumeStatusAction& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
118 
122  inline VolumeStatusAction& WithDescription(const char* value) { SetDescription(value); return *this;}
123 
127  inline const Aws::String& GetEventType() const{ return m_eventType; }
128 
132  inline void SetEventType(const Aws::String& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
133 
137  inline void SetEventType(Aws::String&& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
138 
142  inline void SetEventType(const char* value) { m_eventTypeHasBeenSet = true; m_eventType.assign(value); }
143 
147  inline VolumeStatusAction& WithEventType(const Aws::String& value) { SetEventType(value); return *this;}
148 
152  inline VolumeStatusAction& WithEventType(Aws::String&& value) { SetEventType(value); return *this;}
153 
157  inline VolumeStatusAction& WithEventType(const char* value) { SetEventType(value); return *this;}
158 
162  inline const Aws::String& GetEventId() const{ return m_eventId; }
163 
167  inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
168 
172  inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = value; }
173 
177  inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); }
178 
182  inline VolumeStatusAction& WithEventId(const Aws::String& value) { SetEventId(value); return *this;}
183 
187  inline VolumeStatusAction& WithEventId(Aws::String&& value) { SetEventId(value); return *this;}
188 
192  inline VolumeStatusAction& WithEventId(const char* value) { SetEventId(value); return *this;}
193 
194  private:
195  Aws::String m_code;
196  bool m_codeHasBeenSet;
197  Aws::String m_description;
198  bool m_descriptionHasBeenSet;
199  Aws::String m_eventType;
200  bool m_eventTypeHasBeenSet;
201  Aws::String m_eventId;
202  bool m_eventIdHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace EC2
207 } // namespace Aws
void SetDescription(const char *value)
VolumeStatusAction & WithCode(const char *value)
VolumeStatusAction & WithDescription(Aws::String &&value)
void SetDescription(const Aws::String &value)
void SetEventType(const Aws::String &value)
VolumeStatusAction & WithEventType(const char *value)
VolumeStatusAction & WithEventType(Aws::String &&value)
VolumeStatusAction & WithDescription(const char *value)
void SetEventId(const Aws::String &value)
VolumeStatusAction & WithDescription(const Aws::String &value)
VolumeStatusAction & WithCode(Aws::String &&value)
void SetEventType(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
VolumeStatusAction & WithEventId(Aws::String &&value)
const Aws::String & GetEventId() const
void SetCode(Aws::String &&value)
VolumeStatusAction & WithEventId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCode(const Aws::String &value)
void SetEventId(Aws::String &&value)
VolumeStatusAction & WithEventId(const Aws::String &value)
VolumeStatusAction & WithCode(const Aws::String &value)
const Aws::String & GetCode() const
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
VolumeStatusAction & WithEventType(const Aws::String &value)
void SetDescription(Aws::String &&value)
const Aws::String & GetDescription() const
const Aws::String & GetEventType() const
JSON (JavaScript Object Notation).