AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CancelSpotFleetRequestsSuccessItem.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/BatchState.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const BatchState& GetCurrentSpotFleetRequestState() const{ return m_currentSpotFleetRequestState; }
49 inline bool CurrentSpotFleetRequestStateHasBeenSet() const { return m_currentSpotFleetRequestStateHasBeenSet; }
50 inline void SetCurrentSpotFleetRequestState(const BatchState& value) { m_currentSpotFleetRequestStateHasBeenSet = true; m_currentSpotFleetRequestState = value; }
51 inline void SetCurrentSpotFleetRequestState(BatchState&& value) { m_currentSpotFleetRequestStateHasBeenSet = true; m_currentSpotFleetRequestState = std::move(value); }
55
57
60 inline const BatchState& GetPreviousSpotFleetRequestState() const{ return m_previousSpotFleetRequestState; }
61 inline bool PreviousSpotFleetRequestStateHasBeenSet() const { return m_previousSpotFleetRequestStateHasBeenSet; }
62 inline void SetPreviousSpotFleetRequestState(const BatchState& value) { m_previousSpotFleetRequestStateHasBeenSet = true; m_previousSpotFleetRequestState = value; }
63 inline void SetPreviousSpotFleetRequestState(BatchState&& value) { m_previousSpotFleetRequestStateHasBeenSet = true; m_previousSpotFleetRequestState = std::move(value); }
67
69
72 inline const Aws::String& GetSpotFleetRequestId() const{ return m_spotFleetRequestId; }
73 inline bool SpotFleetRequestIdHasBeenSet() const { return m_spotFleetRequestIdHasBeenSet; }
74 inline void SetSpotFleetRequestId(const Aws::String& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = value; }
75 inline void SetSpotFleetRequestId(Aws::String&& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = std::move(value); }
76 inline void SetSpotFleetRequestId(const char* value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId.assign(value); }
79 inline CancelSpotFleetRequestsSuccessItem& WithSpotFleetRequestId(const char* value) { SetSpotFleetRequestId(value); return *this;}
81 private:
82
83 BatchState m_currentSpotFleetRequestState;
84 bool m_currentSpotFleetRequestStateHasBeenSet = false;
85
86 BatchState m_previousSpotFleetRequestState;
87 bool m_previousSpotFleetRequestStateHasBeenSet = false;
88
89 Aws::String m_spotFleetRequestId;
90 bool m_spotFleetRequestIdHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EC2
95} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CancelSpotFleetRequestsSuccessItem & WithCurrentSpotFleetRequestState(const BatchState &value)
AWS_EC2_API CancelSpotFleetRequestsSuccessItem(const Aws::Utils::Xml::XmlNode &xmlNode)
CancelSpotFleetRequestsSuccessItem & WithPreviousSpotFleetRequestState(const BatchState &value)
CancelSpotFleetRequestsSuccessItem & WithCurrentSpotFleetRequestState(BatchState &&value)
CancelSpotFleetRequestsSuccessItem & WithSpotFleetRequestId(const char *value)
CancelSpotFleetRequestsSuccessItem & WithSpotFleetRequestId(const Aws::String &value)
CancelSpotFleetRequestsSuccessItem & WithSpotFleetRequestId(Aws::String &&value)
AWS_EC2_API CancelSpotFleetRequestsSuccessItem & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
CancelSpotFleetRequestsSuccessItem & WithPreviousSpotFleetRequestState(BatchState &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream