AWS SDK for C++  1.9.159
AWS SDK for C++
DeleteFleetSuccessItem.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 FleetStateCode& GetCurrentFleetState() const{ return m_currentFleetState; }
48 
52  inline bool CurrentFleetStateHasBeenSet() const { return m_currentFleetStateHasBeenSet; }
53 
57  inline void SetCurrentFleetState(const FleetStateCode& value) { m_currentFleetStateHasBeenSet = true; m_currentFleetState = value; }
58 
62  inline void SetCurrentFleetState(FleetStateCode&& value) { m_currentFleetStateHasBeenSet = true; m_currentFleetState = std::move(value); }
63 
67  inline DeleteFleetSuccessItem& WithCurrentFleetState(const FleetStateCode& value) { SetCurrentFleetState(value); return *this;}
68 
72  inline DeleteFleetSuccessItem& WithCurrentFleetState(FleetStateCode&& value) { SetCurrentFleetState(std::move(value)); return *this;}
73 
74 
78  inline const FleetStateCode& GetPreviousFleetState() const{ return m_previousFleetState; }
79 
83  inline bool PreviousFleetStateHasBeenSet() const { return m_previousFleetStateHasBeenSet; }
84 
88  inline void SetPreviousFleetState(const FleetStateCode& value) { m_previousFleetStateHasBeenSet = true; m_previousFleetState = value; }
89 
93  inline void SetPreviousFleetState(FleetStateCode&& value) { m_previousFleetStateHasBeenSet = true; m_previousFleetState = std::move(value); }
94 
98  inline DeleteFleetSuccessItem& WithPreviousFleetState(const FleetStateCode& value) { SetPreviousFleetState(value); return *this;}
99 
103  inline DeleteFleetSuccessItem& WithPreviousFleetState(FleetStateCode&& value) { SetPreviousFleetState(std::move(value)); return *this;}
104 
105 
109  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
110 
114  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
115 
119  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
120 
124  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
125 
129  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
130 
134  inline DeleteFleetSuccessItem& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
135 
139  inline DeleteFleetSuccessItem& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
140 
144  inline DeleteFleetSuccessItem& WithFleetId(const char* value) { SetFleetId(value); return *this;}
145 
146  private:
147 
148  FleetStateCode m_currentFleetState;
149  bool m_currentFleetStateHasBeenSet;
150 
151  FleetStateCode m_previousFleetState;
152  bool m_previousFleetStateHasBeenSet;
153 
154  Aws::String m_fleetId;
155  bool m_fleetIdHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace EC2
160 } // namespace Aws
Aws::EC2::Model::DeleteFleetSuccessItem::GetPreviousFleetState
const FleetStateCode & GetPreviousFleetState() const
Definition: DeleteFleetSuccessItem.h:78
Aws::EC2::Model::DeleteFleetSuccessItem::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::DeleteFleetSuccessItem::WithPreviousFleetState
DeleteFleetSuccessItem & WithPreviousFleetState(FleetStateCode &&value)
Definition: DeleteFleetSuccessItem.h:103
Aws::EC2::Model::DeleteFleetSuccessItem::WithCurrentFleetState
DeleteFleetSuccessItem & WithCurrentFleetState(FleetStateCode &&value)
Definition: DeleteFleetSuccessItem.h:72
Aws::EC2::Model::DeleteFleetSuccessItem::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::DeleteFleetSuccessItem::DeleteFleetSuccessItem
DeleteFleetSuccessItem()
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DeleteFleetSuccessItem::GetFleetId
const Aws::String & GetFleetId() const
Definition: DeleteFleetSuccessItem.h:109
Aws::EC2::Model::DeleteFleetSuccessItem::CurrentFleetStateHasBeenSet
bool CurrentFleetStateHasBeenSet() const
Definition: DeleteFleetSuccessItem.h:52
Aws::EC2::Model::DeleteFleetSuccessItem::DeleteFleetSuccessItem
DeleteFleetSuccessItem(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::DeleteFleetSuccessItem::SetFleetId
void SetFleetId(const char *value)
Definition: DeleteFleetSuccessItem.h:129
AWSStreamFwd.h
Aws::EC2::Model::DeleteFleetSuccessItem::WithFleetId
DeleteFleetSuccessItem & WithFleetId(const char *value)
Definition: DeleteFleetSuccessItem.h:144
Aws::EC2::Model::FleetStateCode
FleetStateCode
Definition: FleetStateCode.h:17
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::DeleteFleetSuccessItem::PreviousFleetStateHasBeenSet
bool PreviousFleetStateHasBeenSet() const
Definition: DeleteFleetSuccessItem.h:83
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::DeleteFleetSuccessItem::operator=
DeleteFleetSuccessItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::DeleteFleetSuccessItem::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: DeleteFleetSuccessItem.h:124
FleetStateCode.h
Aws::EC2::Model::DeleteFleetSuccessItem::SetCurrentFleetState
void SetCurrentFleetState(const FleetStateCode &value)
Definition: DeleteFleetSuccessItem.h:57
Aws::EC2::Model::DeleteFleetSuccessItem::SetPreviousFleetState
void SetPreviousFleetState(FleetStateCode &&value)
Definition: DeleteFleetSuccessItem.h:93
Aws::EC2::Model::DeleteFleetSuccessItem
Definition: DeleteFleetSuccessItem.h:34
Aws::EC2::Model::DeleteFleetSuccessItem::WithPreviousFleetState
DeleteFleetSuccessItem & WithPreviousFleetState(const FleetStateCode &value)
Definition: DeleteFleetSuccessItem.h:98
Aws::EC2::Model::DeleteFleetSuccessItem::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: DeleteFleetSuccessItem.h:114
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DeleteFleetSuccessItem::GetCurrentFleetState
const FleetStateCode & GetCurrentFleetState() const
Definition: DeleteFleetSuccessItem.h:47
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::DeleteFleetSuccessItem::WithFleetId
DeleteFleetSuccessItem & WithFleetId(const Aws::String &value)
Definition: DeleteFleetSuccessItem.h:134
Aws::EC2::Model::DeleteFleetSuccessItem::SetCurrentFleetState
void SetCurrentFleetState(FleetStateCode &&value)
Definition: DeleteFleetSuccessItem.h:62
Aws::EC2::Model::DeleteFleetSuccessItem::WithCurrentFleetState
DeleteFleetSuccessItem & WithCurrentFleetState(const FleetStateCode &value)
Definition: DeleteFleetSuccessItem.h:67
EC2_EXPORTS.h
Aws::EC2::Model::DeleteFleetSuccessItem::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: DeleteFleetSuccessItem.h:119
Aws::EC2::Model::DeleteFleetSuccessItem::SetPreviousFleetState
void SetPreviousFleetState(const FleetStateCode &value)
Definition: DeleteFleetSuccessItem.h:88
Aws::EC2::Model::DeleteFleetSuccessItem::WithFleetId
DeleteFleetSuccessItem & WithFleetId(Aws::String &&value)
Definition: DeleteFleetSuccessItem.h:139