AWS SDK for C++  1.9.71
AWS SDK for C++
EnableFastSnapshotRestoreErrorItem.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace EC2
24 {
25 namespace Model
26 {
27 
35  {
36  public:
40 
41  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42  void OutputToStream(Aws::OStream& oStream, const char* location) const;
43 
44 
48  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
49 
53  inline bool SnapshotIdHasBeenSet() const { return m_snapshotIdHasBeenSet; }
54 
58  inline void SetSnapshotId(const Aws::String& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = value; }
59 
63  inline void SetSnapshotId(Aws::String&& value) { m_snapshotIdHasBeenSet = true; m_snapshotId = std::move(value); }
64 
68  inline void SetSnapshotId(const char* value) { m_snapshotIdHasBeenSet = true; m_snapshotId.assign(value); }
69 
73  inline EnableFastSnapshotRestoreErrorItem& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
74 
78  inline EnableFastSnapshotRestoreErrorItem& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
79 
83  inline EnableFastSnapshotRestoreErrorItem& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
84 
85 
89  inline const Aws::Vector<EnableFastSnapshotRestoreStateErrorItem>& GetFastSnapshotRestoreStateErrors() const{ return m_fastSnapshotRestoreStateErrors; }
90 
94  inline bool FastSnapshotRestoreStateErrorsHasBeenSet() const { return m_fastSnapshotRestoreStateErrorsHasBeenSet; }
95 
99  inline void SetFastSnapshotRestoreStateErrors(const Aws::Vector<EnableFastSnapshotRestoreStateErrorItem>& value) { m_fastSnapshotRestoreStateErrorsHasBeenSet = true; m_fastSnapshotRestoreStateErrors = value; }
100 
104  inline void SetFastSnapshotRestoreStateErrors(Aws::Vector<EnableFastSnapshotRestoreStateErrorItem>&& value) { m_fastSnapshotRestoreStateErrorsHasBeenSet = true; m_fastSnapshotRestoreStateErrors = std::move(value); }
105 
109  inline EnableFastSnapshotRestoreErrorItem& WithFastSnapshotRestoreStateErrors(const Aws::Vector<EnableFastSnapshotRestoreStateErrorItem>& value) { SetFastSnapshotRestoreStateErrors(value); return *this;}
110 
114  inline EnableFastSnapshotRestoreErrorItem& WithFastSnapshotRestoreStateErrors(Aws::Vector<EnableFastSnapshotRestoreStateErrorItem>&& value) { SetFastSnapshotRestoreStateErrors(std::move(value)); return *this;}
115 
119  inline EnableFastSnapshotRestoreErrorItem& AddFastSnapshotRestoreStateErrors(const EnableFastSnapshotRestoreStateErrorItem& value) { m_fastSnapshotRestoreStateErrorsHasBeenSet = true; m_fastSnapshotRestoreStateErrors.push_back(value); return *this; }
120 
124  inline EnableFastSnapshotRestoreErrorItem& AddFastSnapshotRestoreStateErrors(EnableFastSnapshotRestoreStateErrorItem&& value) { m_fastSnapshotRestoreStateErrorsHasBeenSet = true; m_fastSnapshotRestoreStateErrors.push_back(std::move(value)); return *this; }
125 
126  private:
127 
128  Aws::String m_snapshotId;
129  bool m_snapshotIdHasBeenSet;
130 
131  Aws::Vector<EnableFastSnapshotRestoreStateErrorItem> m_fastSnapshotRestoreStateErrors;
132  bool m_fastSnapshotRestoreStateErrorsHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace EC2
137 } // namespace Aws
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::WithSnapshotId
EnableFastSnapshotRestoreErrorItem & WithSnapshotId(const Aws::String &value)
Definition: EnableFastSnapshotRestoreErrorItem.h:73
Aws::EC2::Model::EnableFastSnapshotRestoreStateErrorItem
Definition: EnableFastSnapshotRestoreStateErrorItem.h:34
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: EnableFastSnapshotRestoreErrorItem.h:68
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::SetFastSnapshotRestoreStateErrors
void SetFastSnapshotRestoreStateErrors(Aws::Vector< EnableFastSnapshotRestoreStateErrorItem > &&value)
Definition: EnableFastSnapshotRestoreErrorItem.h:104
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::EnableFastSnapshotRestoreErrorItem
EnableFastSnapshotRestoreErrorItem(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSVector.h
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: EnableFastSnapshotRestoreErrorItem.h:48
EnableFastSnapshotRestoreStateErrorItem.h
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem
Definition: EnableFastSnapshotRestoreErrorItem.h:35
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::GetFastSnapshotRestoreStateErrors
const Aws::Vector< EnableFastSnapshotRestoreStateErrorItem > & GetFastSnapshotRestoreStateErrors() const
Definition: EnableFastSnapshotRestoreErrorItem.h:89
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: EnableFastSnapshotRestoreErrorItem.h:58
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::AddFastSnapshotRestoreStateErrors
EnableFastSnapshotRestoreErrorItem & AddFastSnapshotRestoreStateErrors(const EnableFastSnapshotRestoreStateErrorItem &value)
Definition: EnableFastSnapshotRestoreErrorItem.h:119
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::FastSnapshotRestoreStateErrorsHasBeenSet
bool FastSnapshotRestoreStateErrorsHasBeenSet() const
Definition: EnableFastSnapshotRestoreErrorItem.h:94
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::SetFastSnapshotRestoreStateErrors
void SetFastSnapshotRestoreStateErrors(const Aws::Vector< EnableFastSnapshotRestoreStateErrorItem > &value)
Definition: EnableFastSnapshotRestoreErrorItem.h:99
AWSString.h
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::WithSnapshotId
EnableFastSnapshotRestoreErrorItem & WithSnapshotId(const char *value)
Definition: EnableFastSnapshotRestoreErrorItem.h:83
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::EnableFastSnapshotRestoreErrorItem
EnableFastSnapshotRestoreErrorItem()
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::SnapshotIdHasBeenSet
bool SnapshotIdHasBeenSet() const
Definition: EnableFastSnapshotRestoreErrorItem.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: EnableFastSnapshotRestoreErrorItem.h:63
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::WithFastSnapshotRestoreStateErrors
EnableFastSnapshotRestoreErrorItem & WithFastSnapshotRestoreStateErrors(const Aws::Vector< EnableFastSnapshotRestoreStateErrorItem > &value)
Definition: EnableFastSnapshotRestoreErrorItem.h:109
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::operator=
EnableFastSnapshotRestoreErrorItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::WithSnapshotId
EnableFastSnapshotRestoreErrorItem & WithSnapshotId(Aws::String &&value)
Definition: EnableFastSnapshotRestoreErrorItem.h:78
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::WithFastSnapshotRestoreStateErrors
EnableFastSnapshotRestoreErrorItem & WithFastSnapshotRestoreStateErrors(Aws::Vector< EnableFastSnapshotRestoreStateErrorItem > &&value)
Definition: EnableFastSnapshotRestoreErrorItem.h:114
Aws::EC2::Model::EnableFastSnapshotRestoreErrorItem::AddFastSnapshotRestoreStateErrors
EnableFastSnapshotRestoreErrorItem & AddFastSnapshotRestoreStateErrors(EnableFastSnapshotRestoreStateErrorItem &&value)
Definition: EnableFastSnapshotRestoreErrorItem.h:124
EC2_EXPORTS.h