AWS SDK for C++  1.9.69
AWS SDK for C++
DisableFastSnapshotRestoreStateErrorItem.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
48 
52  inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
53 
57  inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
58 
62  inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
63 
67  inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
68 
72  inline DisableFastSnapshotRestoreStateErrorItem& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
73 
77  inline DisableFastSnapshotRestoreStateErrorItem& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
78 
82  inline DisableFastSnapshotRestoreStateErrorItem& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
83 
84 
88  inline const DisableFastSnapshotRestoreStateError& GetError() const{ return m_error; }
89 
93  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
94 
98  inline void SetError(const DisableFastSnapshotRestoreStateError& value) { m_errorHasBeenSet = true; m_error = value; }
99 
103  inline void SetError(DisableFastSnapshotRestoreStateError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
104 
108  inline DisableFastSnapshotRestoreStateErrorItem& WithError(const DisableFastSnapshotRestoreStateError& value) { SetError(value); return *this;}
109 
113  inline DisableFastSnapshotRestoreStateErrorItem& WithError(DisableFastSnapshotRestoreStateError&& value) { SetError(std::move(value)); return *this;}
114 
115  private:
116 
117  Aws::String m_availabilityZone;
118  bool m_availabilityZoneHasBeenSet;
119 
121  bool m_errorHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: DisableFastSnapshotRestoreStateErrorItem.h:93
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::WithError
DisableFastSnapshotRestoreStateErrorItem & WithError(const DisableFastSnapshotRestoreStateError &value)
Definition: DisableFastSnapshotRestoreStateErrorItem.h:108
DisableFastSnapshotRestoreStateError.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::DisableFastSnapshotRestoreStateErrorItem
DisableFastSnapshotRestoreStateErrorItem()
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::DisableFastSnapshotRestoreStateError
Definition: DisableFastSnapshotRestoreStateError.h:33
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::SetAvailabilityZone
void SetAvailabilityZone(const Aws::String &value)
Definition: DisableFastSnapshotRestoreStateErrorItem.h:57
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::WithAvailabilityZone
DisableFastSnapshotRestoreStateErrorItem & WithAvailabilityZone(Aws::String &&value)
Definition: DisableFastSnapshotRestoreStateErrorItem.h:77
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::GetError
const DisableFastSnapshotRestoreStateError & GetError() const
Definition: DisableFastSnapshotRestoreStateErrorItem.h:88
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::AvailabilityZoneHasBeenSet
bool AvailabilityZoneHasBeenSet() const
Definition: DisableFastSnapshotRestoreStateErrorItem.h:52
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::SetAvailabilityZone
void SetAvailabilityZone(Aws::String &&value)
Definition: DisableFastSnapshotRestoreStateErrorItem.h:62
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::GetAvailabilityZone
const Aws::String & GetAvailabilityZone() const
Definition: DisableFastSnapshotRestoreStateErrorItem.h:47
AWSString.h
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::operator=
DisableFastSnapshotRestoreStateErrorItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::WithAvailabilityZone
DisableFastSnapshotRestoreStateErrorItem & WithAvailabilityZone(const char *value)
Definition: DisableFastSnapshotRestoreStateErrorItem.h:82
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem
Definition: DisableFastSnapshotRestoreStateErrorItem.h:34
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::WithAvailabilityZone
DisableFastSnapshotRestoreStateErrorItem & WithAvailabilityZone(const Aws::String &value)
Definition: DisableFastSnapshotRestoreStateErrorItem.h:72
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::DisableFastSnapshotRestoreStateErrorItem::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::SetError
void SetError(DisableFastSnapshotRestoreStateError &&value)
Definition: DisableFastSnapshotRestoreStateErrorItem.h:103
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::WithError
DisableFastSnapshotRestoreStateErrorItem & WithError(DisableFastSnapshotRestoreStateError &&value)
Definition: DisableFastSnapshotRestoreStateErrorItem.h:113
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::SetError
void SetError(const DisableFastSnapshotRestoreStateError &value)
Definition: DisableFastSnapshotRestoreStateErrorItem.h:98
EC2_EXPORTS.h
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::SetAvailabilityZone
void SetAvailabilityZone(const char *value)
Definition: DisableFastSnapshotRestoreStateErrorItem.h:67
Aws::EC2::Model::DisableFastSnapshotRestoreStateErrorItem::DisableFastSnapshotRestoreStateErrorItem
DisableFastSnapshotRestoreStateErrorItem(const Aws::Utils::Xml::XmlNode &xmlNode)