AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
LaunchInstancesResult.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/InstanceCollection.h>
9#include <aws/autoscaling/model/LaunchInstancesError.h>
10#include <aws/autoscaling/model/ResponseMetadata.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Xml {
23class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace AutoScaling {
27namespace Model {
29 public:
30 AWS_AUTOSCALING_API LaunchInstancesResult() = default;
33
35
38 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
39 template <typename AutoScalingGroupNameT = Aws::String>
40 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
41 m_autoScalingGroupNameHasBeenSet = true;
42 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
43 }
44 template <typename AutoScalingGroupNameT = Aws::String>
45 LaunchInstancesResult& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) {
46 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetClientToken() const { return m_clientToken; }
57 template <typename ClientTokenT = Aws::String>
58 void SetClientToken(ClientTokenT&& value) {
59 m_clientTokenHasBeenSet = true;
60 m_clientToken = std::forward<ClientTokenT>(value);
61 }
62 template <typename ClientTokenT = Aws::String>
63 LaunchInstancesResult& WithClientToken(ClientTokenT&& value) {
64 SetClientToken(std::forward<ClientTokenT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::Vector<InstanceCollection>& GetInstances() const { return m_instances; }
75 template <typename InstancesT = Aws::Vector<InstanceCollection>>
76 void SetInstances(InstancesT&& value) {
77 m_instancesHasBeenSet = true;
78 m_instances = std::forward<InstancesT>(value);
79 }
80 template <typename InstancesT = Aws::Vector<InstanceCollection>>
81 LaunchInstancesResult& WithInstances(InstancesT&& value) {
82 SetInstances(std::forward<InstancesT>(value));
83 return *this;
84 }
85 template <typename InstancesT = InstanceCollection>
86 LaunchInstancesResult& AddInstances(InstancesT&& value) {
87 m_instancesHasBeenSet = true;
88 m_instances.emplace_back(std::forward<InstancesT>(value));
89 return *this;
90 }
92
94
99 inline const Aws::Vector<LaunchInstancesError>& GetErrors() const { return m_errors; }
100 template <typename ErrorsT = Aws::Vector<LaunchInstancesError>>
101 void SetErrors(ErrorsT&& value) {
102 m_errorsHasBeenSet = true;
103 m_errors = std::forward<ErrorsT>(value);
104 }
105 template <typename ErrorsT = Aws::Vector<LaunchInstancesError>>
107 SetErrors(std::forward<ErrorsT>(value));
108 return *this;
109 }
110 template <typename ErrorsT = LaunchInstancesError>
112 m_errorsHasBeenSet = true;
113 m_errors.emplace_back(std::forward<ErrorsT>(value));
114 return *this;
115 }
117
119
120 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
121 template <typename ResponseMetadataT = ResponseMetadata>
122 void SetResponseMetadata(ResponseMetadataT&& value) {
123 m_responseMetadataHasBeenSet = true;
124 m_responseMetadata = std::forward<ResponseMetadataT>(value);
125 }
126 template <typename ResponseMetadataT = ResponseMetadata>
127 LaunchInstancesResult& WithResponseMetadata(ResponseMetadataT&& value) {
128 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
129 return *this;
130 }
132 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
133
134 private:
135 Aws::String m_autoScalingGroupName;
136
137 Aws::String m_clientToken;
138
140
142
143 ResponseMetadata m_responseMetadata;
144 Aws::Http::HttpResponseCode m_HttpResponseCode;
145 bool m_autoScalingGroupNameHasBeenSet = false;
146 bool m_clientTokenHasBeenSet = false;
147 bool m_instancesHasBeenSet = false;
148 bool m_errorsHasBeenSet = false;
149 bool m_responseMetadataHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace AutoScaling
154} // namespace Aws
const ResponseMetadata & GetResponseMetadata() const
const Aws::Vector< InstanceCollection > & GetInstances() const
AWS_AUTOSCALING_API LaunchInstancesResult()=default
LaunchInstancesResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_AUTOSCALING_API LaunchInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_AUTOSCALING_API LaunchInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
LaunchInstancesResult & WithInstances(InstancesT &&value)
const Aws::Vector< LaunchInstancesError > & GetErrors() const
LaunchInstancesResult & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
LaunchInstancesResult & WithClientToken(ClientTokenT &&value)
LaunchInstancesResult & AddInstances(InstancesT &&value)
LaunchInstancesResult & WithErrors(ErrorsT &&value)
LaunchInstancesResult & AddErrors(ErrorsT &&value)
void SetAutoScalingGroupName(AutoScalingGroupNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument