AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
LaunchInstancesError.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace AutoScaling {
20namespace Model {
21
29 public:
30 AWS_AUTOSCALING_API LaunchInstancesError() = default;
31 AWS_AUTOSCALING_API LaunchInstancesError(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_AUTOSCALING_API LaunchInstancesError& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_AUTOSCALING_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
42 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
43 template <typename InstanceTypeT = Aws::String>
44 void SetInstanceType(InstanceTypeT&& value) {
45 m_instanceTypeHasBeenSet = true;
46 m_instanceType = std::forward<InstanceTypeT>(value);
47 }
48 template <typename InstanceTypeT = Aws::String>
49 LaunchInstancesError& WithInstanceType(InstanceTypeT&& value) {
50 SetInstanceType(std::forward<InstanceTypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetMarketType() const { return m_marketType; }
60 inline bool MarketTypeHasBeenSet() const { return m_marketTypeHasBeenSet; }
61 template <typename MarketTypeT = Aws::String>
62 void SetMarketType(MarketTypeT&& value) {
63 m_marketTypeHasBeenSet = true;
64 m_marketType = std::forward<MarketTypeT>(value);
65 }
66 template <typename MarketTypeT = Aws::String>
67 LaunchInstancesError& WithMarketType(MarketTypeT&& value) {
68 SetMarketType(std::forward<MarketTypeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetSubnetId() const { return m_subnetId; }
78 inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
79 template <typename SubnetIdT = Aws::String>
80 void SetSubnetId(SubnetIdT&& value) {
81 m_subnetIdHasBeenSet = true;
82 m_subnetId = std::forward<SubnetIdT>(value);
83 }
84 template <typename SubnetIdT = Aws::String>
85 LaunchInstancesError& WithSubnetId(SubnetIdT&& value) {
86 SetSubnetId(std::forward<SubnetIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
96 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
97 template <typename AvailabilityZoneT = Aws::String>
98 void SetAvailabilityZone(AvailabilityZoneT&& value) {
99 m_availabilityZoneHasBeenSet = true;
100 m_availabilityZone = std::forward<AvailabilityZoneT>(value);
101 }
102 template <typename AvailabilityZoneT = Aws::String>
103 LaunchInstancesError& WithAvailabilityZone(AvailabilityZoneT&& value) {
104 SetAvailabilityZone(std::forward<AvailabilityZoneT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetAvailabilityZoneId() const { return m_availabilityZoneId; }
114 inline bool AvailabilityZoneIdHasBeenSet() const { return m_availabilityZoneIdHasBeenSet; }
115 template <typename AvailabilityZoneIdT = Aws::String>
116 void SetAvailabilityZoneId(AvailabilityZoneIdT&& value) {
117 m_availabilityZoneIdHasBeenSet = true;
118 m_availabilityZoneId = std::forward<AvailabilityZoneIdT>(value);
119 }
120 template <typename AvailabilityZoneIdT = Aws::String>
121 LaunchInstancesError& WithAvailabilityZoneId(AvailabilityZoneIdT&& value) {
122 SetAvailabilityZoneId(std::forward<AvailabilityZoneIdT>(value));
123 return *this;
124 }
126
128
132 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
133 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
134 template <typename ErrorCodeT = Aws::String>
135 void SetErrorCode(ErrorCodeT&& value) {
136 m_errorCodeHasBeenSet = true;
137 m_errorCode = std::forward<ErrorCodeT>(value);
138 }
139 template <typename ErrorCodeT = Aws::String>
140 LaunchInstancesError& WithErrorCode(ErrorCodeT&& value) {
141 SetErrorCode(std::forward<ErrorCodeT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
152 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
153 template <typename ErrorMessageT = Aws::String>
154 void SetErrorMessage(ErrorMessageT&& value) {
155 m_errorMessageHasBeenSet = true;
156 m_errorMessage = std::forward<ErrorMessageT>(value);
157 }
158 template <typename ErrorMessageT = Aws::String>
159 LaunchInstancesError& WithErrorMessage(ErrorMessageT&& value) {
160 SetErrorMessage(std::forward<ErrorMessageT>(value));
161 return *this;
162 }
164 private:
165 Aws::String m_instanceType;
166
167 Aws::String m_marketType;
168
169 Aws::String m_subnetId;
170
171 Aws::String m_availabilityZone;
172
173 Aws::String m_availabilityZoneId;
174
175 Aws::String m_errorCode;
176
177 Aws::String m_errorMessage;
178 bool m_instanceTypeHasBeenSet = false;
179 bool m_marketTypeHasBeenSet = false;
180 bool m_subnetIdHasBeenSet = false;
181 bool m_availabilityZoneHasBeenSet = false;
182 bool m_availabilityZoneIdHasBeenSet = false;
183 bool m_errorCodeHasBeenSet = false;
184 bool m_errorMessageHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace AutoScaling
189} // namespace Aws
LaunchInstancesError & WithMarketType(MarketTypeT &&value)
LaunchInstancesError & WithInstanceType(InstanceTypeT &&value)
LaunchInstancesError & WithSubnetId(SubnetIdT &&value)
void SetAvailabilityZoneId(AvailabilityZoneIdT &&value)
AWS_AUTOSCALING_API LaunchInstancesError()=default
AWS_AUTOSCALING_API LaunchInstancesError & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API LaunchInstancesError(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &oStream, const char *location) const
LaunchInstancesError & WithAvailabilityZone(AvailabilityZoneT &&value)
AWS_AUTOSCALING_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAvailabilityZone(AvailabilityZoneT &&value)
LaunchInstancesError & WithAvailabilityZoneId(AvailabilityZoneIdT &&value)
LaunchInstancesError & WithErrorMessage(ErrorMessageT &&value)
LaunchInstancesError & WithErrorCode(ErrorCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream