AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeWarmPoolResult.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/Instance.h>
9#include <aws/autoscaling/model/ResponseMetadata.h>
10#include <aws/autoscaling/model/WarmPoolConfiguration.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 DescribeWarmPoolResult() = default;
33
35
38 inline const WarmPoolConfiguration& GetWarmPoolConfiguration() const { return m_warmPoolConfiguration; }
39 template <typename WarmPoolConfigurationT = WarmPoolConfiguration>
40 void SetWarmPoolConfiguration(WarmPoolConfigurationT&& value) {
41 m_warmPoolConfigurationHasBeenSet = true;
42 m_warmPoolConfiguration = std::forward<WarmPoolConfigurationT>(value);
43 }
44 template <typename WarmPoolConfigurationT = WarmPoolConfiguration>
45 DescribeWarmPoolResult& WithWarmPoolConfiguration(WarmPoolConfigurationT&& value) {
46 SetWarmPoolConfiguration(std::forward<WarmPoolConfigurationT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::Vector<Instance>& GetInstances() const { return m_instances; }
56 template <typename InstancesT = Aws::Vector<Instance>>
57 void SetInstances(InstancesT&& value) {
58 m_instancesHasBeenSet = true;
59 m_instances = std::forward<InstancesT>(value);
60 }
61 template <typename InstancesT = Aws::Vector<Instance>>
63 SetInstances(std::forward<InstancesT>(value));
64 return *this;
65 }
66 template <typename InstancesT = Instance>
67 DescribeWarmPoolResult& AddInstances(InstancesT&& value) {
68 m_instancesHasBeenSet = true;
69 m_instances.emplace_back(std::forward<InstancesT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetNextToken() const { return m_nextToken; }
82 template <typename NextTokenT = Aws::String>
83 void SetNextToken(NextTokenT&& value) {
84 m_nextTokenHasBeenSet = true;
85 m_nextToken = std::forward<NextTokenT>(value);
86 }
87 template <typename NextTokenT = Aws::String>
89 SetNextToken(std::forward<NextTokenT>(value));
90 return *this;
91 }
93
95
96 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
97 template <typename ResponseMetadataT = ResponseMetadata>
98 void SetResponseMetadata(ResponseMetadataT&& value) {
99 m_responseMetadataHasBeenSet = true;
100 m_responseMetadata = std::forward<ResponseMetadataT>(value);
101 }
102 template <typename ResponseMetadataT = ResponseMetadata>
103 DescribeWarmPoolResult& WithResponseMetadata(ResponseMetadataT&& value) {
104 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
105 return *this;
106 }
108 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
109
110 private:
111 WarmPoolConfiguration m_warmPoolConfiguration;
112
113 Aws::Vector<Instance> m_instances;
114
115 Aws::String m_nextToken;
116
117 ResponseMetadata m_responseMetadata;
118 Aws::Http::HttpResponseCode m_HttpResponseCode;
119 bool m_warmPoolConfigurationHasBeenSet = false;
120 bool m_instancesHasBeenSet = false;
121 bool m_nextTokenHasBeenSet = false;
122 bool m_responseMetadataHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace AutoScaling
127} // namespace Aws
DescribeWarmPoolResult & WithNextToken(NextTokenT &&value)
AWS_AUTOSCALING_API DescribeWarmPoolResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeWarmPoolResult & AddInstances(InstancesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const WarmPoolConfiguration & GetWarmPoolConfiguration() const
AWS_AUTOSCALING_API DescribeWarmPoolResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Vector< Instance > & GetInstances() const
DescribeWarmPoolResult & WithWarmPoolConfiguration(WarmPoolConfigurationT &&value)
DescribeWarmPoolResult & WithInstances(InstancesT &&value)
void SetWarmPoolConfiguration(WarmPoolConfigurationT &&value)
AWS_AUTOSCALING_API DescribeWarmPoolResult()=default
DescribeWarmPoolResult & WithResponseMetadata(ResponseMetadataT &&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