AWS SDK for C++  1.9.157
AWS SDK for C++
DeleteFleetErrorItem.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 DeleteFleetError& GetError() const{ return m_error; }
48 
52  inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
53 
57  inline void SetError(const DeleteFleetError& value) { m_errorHasBeenSet = true; m_error = value; }
58 
62  inline void SetError(DeleteFleetError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
63 
67  inline DeleteFleetErrorItem& WithError(const DeleteFleetError& value) { SetError(value); return *this;}
68 
72  inline DeleteFleetErrorItem& WithError(DeleteFleetError&& value) { SetError(std::move(value)); return *this;}
73 
74 
78  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
79 
83  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
84 
88  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
89 
93  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
94 
98  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
99 
103  inline DeleteFleetErrorItem& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
104 
108  inline DeleteFleetErrorItem& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
109 
113  inline DeleteFleetErrorItem& WithFleetId(const char* value) { SetFleetId(value); return *this;}
114 
115  private:
116 
117  DeleteFleetError m_error;
118  bool m_errorHasBeenSet;
119 
120  Aws::String m_fleetId;
121  bool m_fleetIdHasBeenSet;
122  };
123 
124 } // namespace Model
125 } // namespace EC2
126 } // namespace Aws
Aws::EC2::Model::DeleteFleetErrorItem::WithFleetId
DeleteFleetErrorItem & WithFleetId(const Aws::String &value)
Definition: DeleteFleetErrorItem.h:103
Aws::EC2::Model::DeleteFleetError
Definition: DeleteFleetError.h:33
Aws::EC2::Model::DeleteFleetErrorItem::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: DeleteFleetErrorItem.h:83
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::DeleteFleetErrorItem::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::DeleteFleetErrorItem::WithError
DeleteFleetErrorItem & WithError(const DeleteFleetError &value)
Definition: DeleteFleetErrorItem.h:67
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::DeleteFleetErrorItem::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: DeleteFleetErrorItem.h:88
Aws::EC2::Model::DeleteFleetErrorItem::WithError
DeleteFleetErrorItem & WithError(DeleteFleetError &&value)
Definition: DeleteFleetErrorItem.h:72
Aws::EC2::Model::DeleteFleetErrorItem::GetError
const DeleteFleetError & GetError() const
Definition: DeleteFleetErrorItem.h:47
DeleteFleetError.h
Aws::EC2::Model::DeleteFleetErrorItem::SetFleetId
void SetFleetId(const char *value)
Definition: DeleteFleetErrorItem.h:98
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::DeleteFleetErrorItem::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::DeleteFleetErrorItem::WithFleetId
DeleteFleetErrorItem & WithFleetId(const char *value)
Definition: DeleteFleetErrorItem.h:113
AWSString.h
Aws::EC2::Model::DeleteFleetErrorItem::ErrorHasBeenSet
bool ErrorHasBeenSet() const
Definition: DeleteFleetErrorItem.h:52
Aws::EC2::Model::DeleteFleetErrorItem::DeleteFleetErrorItem
DeleteFleetErrorItem()
Aws::EC2::Model::DeleteFleetErrorItem::operator=
DeleteFleetErrorItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DeleteFleetErrorItem::DeleteFleetErrorItem
DeleteFleetErrorItem(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteFleetErrorItem::SetError
void SetError(DeleteFleetError &&value)
Definition: DeleteFleetErrorItem.h:62
Aws::EC2::Model::DeleteFleetErrorItem::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: DeleteFleetErrorItem.h:93
Aws::EC2::Model::DeleteFleetErrorItem::GetFleetId
const Aws::String & GetFleetId() const
Definition: DeleteFleetErrorItem.h:78
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::DeleteFleetErrorItem::WithFleetId
DeleteFleetErrorItem & WithFleetId(Aws::String &&value)
Definition: DeleteFleetErrorItem.h:108
Aws::EC2::Model::DeleteFleetErrorItem
Definition: DeleteFleetErrorItem.h:34
Aws::EC2::Model::DeleteFleetErrorItem::SetError
void SetError(const DeleteFleetError &value)
Definition: DeleteFleetErrorItem.h:57
EC2_EXPORTS.h