AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SpotFleetRequestConfig.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/ActivityStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ec2/model/SpotFleetRequestConfigData.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/ec2/model/BatchState.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15#include <aws/ec2/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace EC2
28{
29namespace Model
30{
31
38 {
39 public:
43
44 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
57 inline const ActivityStatus& GetActivityStatus() const{ return m_activityStatus; }
58 inline bool ActivityStatusHasBeenSet() const { return m_activityStatusHasBeenSet; }
59 inline void SetActivityStatus(const ActivityStatus& value) { m_activityStatusHasBeenSet = true; m_activityStatus = value; }
60 inline void SetActivityStatus(ActivityStatus&& value) { m_activityStatusHasBeenSet = true; m_activityStatus = std::move(value); }
61 inline SpotFleetRequestConfig& WithActivityStatus(const ActivityStatus& value) { SetActivityStatus(value); return *this;}
62 inline SpotFleetRequestConfig& WithActivityStatus(ActivityStatus&& value) { SetActivityStatus(std::move(value)); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
70 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
71 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
72 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
73 inline SpotFleetRequestConfig& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
74 inline SpotFleetRequestConfig& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
76
78
81 inline const SpotFleetRequestConfigData& GetSpotFleetRequestConfig() const{ return m_spotFleetRequestConfig; }
82 inline bool SpotFleetRequestConfigHasBeenSet() const { return m_spotFleetRequestConfigHasBeenSet; }
83 inline void SetSpotFleetRequestConfig(const SpotFleetRequestConfigData& value) { m_spotFleetRequestConfigHasBeenSet = true; m_spotFleetRequestConfig = value; }
84 inline void SetSpotFleetRequestConfig(SpotFleetRequestConfigData&& value) { m_spotFleetRequestConfigHasBeenSet = true; m_spotFleetRequestConfig = std::move(value); }
88
90
93 inline const Aws::String& GetSpotFleetRequestId() const{ return m_spotFleetRequestId; }
94 inline bool SpotFleetRequestIdHasBeenSet() const { return m_spotFleetRequestIdHasBeenSet; }
95 inline void SetSpotFleetRequestId(const Aws::String& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = value; }
96 inline void SetSpotFleetRequestId(Aws::String&& value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId = std::move(value); }
97 inline void SetSpotFleetRequestId(const char* value) { m_spotFleetRequestIdHasBeenSet = true; m_spotFleetRequestId.assign(value); }
99 inline SpotFleetRequestConfig& WithSpotFleetRequestId(Aws::String&& value) { SetSpotFleetRequestId(std::move(value)); return *this;}
100 inline SpotFleetRequestConfig& WithSpotFleetRequestId(const char* value) { SetSpotFleetRequestId(value); return *this;}
102
104
107 inline const BatchState& GetSpotFleetRequestState() const{ return m_spotFleetRequestState; }
108 inline bool SpotFleetRequestStateHasBeenSet() const { return m_spotFleetRequestStateHasBeenSet; }
109 inline void SetSpotFleetRequestState(const BatchState& value) { m_spotFleetRequestStateHasBeenSet = true; m_spotFleetRequestState = value; }
110 inline void SetSpotFleetRequestState(BatchState&& value) { m_spotFleetRequestStateHasBeenSet = true; m_spotFleetRequestState = std::move(value); }
112 inline SpotFleetRequestConfig& WithSpotFleetRequestState(BatchState&& value) { SetSpotFleetRequestState(std::move(value)); return *this;}
114
116
119 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
122 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
123 inline SpotFleetRequestConfig& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
124 inline SpotFleetRequestConfig& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
125 inline SpotFleetRequestConfig& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
126 inline SpotFleetRequestConfig& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
128 private:
129
130 ActivityStatus m_activityStatus;
131 bool m_activityStatusHasBeenSet = false;
132
133 Aws::Utils::DateTime m_createTime;
134 bool m_createTimeHasBeenSet = false;
135
136 SpotFleetRequestConfigData m_spotFleetRequestConfig;
137 bool m_spotFleetRequestConfigHasBeenSet = false;
138
139 Aws::String m_spotFleetRequestId;
140 bool m_spotFleetRequestIdHasBeenSet = false;
141
142 BatchState m_spotFleetRequestState;
143 bool m_spotFleetRequestStateHasBeenSet = false;
144
145 Aws::Vector<Tag> m_tags;
146 bool m_tagsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace EC2
151} // namespace Aws
SpotFleetRequestConfig & WithCreateTime(Aws::Utils::DateTime &&value)
SpotFleetRequestConfig & WithTags(const Aws::Vector< Tag > &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetSpotFleetRequestState(const BatchState &value)
const ActivityStatus & GetActivityStatus() const
SpotFleetRequestConfig & WithActivityStatus(const ActivityStatus &value)
SpotFleetRequestConfig & WithSpotFleetRequestConfig(SpotFleetRequestConfigData &&value)
const BatchState & GetSpotFleetRequestState() const
AWS_EC2_API SpotFleetRequestConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetActivityStatus(const ActivityStatus &value)
void SetSpotFleetRequestConfig(const SpotFleetRequestConfigData &value)
SpotFleetRequestConfig & WithSpotFleetRequestId(const Aws::String &value)
SpotFleetRequestConfig & WithActivityStatus(ActivityStatus &&value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
SpotFleetRequestConfig & WithTags(Aws::Vector< Tag > &&value)
const SpotFleetRequestConfigData & GetSpotFleetRequestConfig() const
void SetCreateTime(Aws::Utils::DateTime &&value)
SpotFleetRequestConfig & WithSpotFleetRequestId(const char *value)
const Aws::Utils::DateTime & GetCreateTime() const
void SetCreateTime(const Aws::Utils::DateTime &value)
SpotFleetRequestConfig & AddTags(const Tag &value)
SpotFleetRequestConfig & WithSpotFleetRequestState(const BatchState &value)
void SetSpotFleetRequestId(const Aws::String &value)
SpotFleetRequestConfig & WithCreateTime(const Aws::Utils::DateTime &value)
SpotFleetRequestConfig & WithSpotFleetRequestId(Aws::String &&value)
SpotFleetRequestConfig & AddTags(Tag &&value)
AWS_EC2_API SpotFleetRequestConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
SpotFleetRequestConfig & WithSpotFleetRequestState(BatchState &&value)
const Aws::String & GetSpotFleetRequestId() const
void SetActivityStatus(ActivityStatus &&value)
SpotFleetRequestConfig & WithSpotFleetRequestConfig(const SpotFleetRequestConfigData &value)
void SetSpotFleetRequestConfig(SpotFleetRequestConfigData &&value)
const Aws::Vector< Tag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream