AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PutScalingPolicyResult.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/model/Alarm.h>
9#include <aws/autoscaling/model/ResponseMetadata.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace AutoScaling {
26namespace Model {
33 public:
34 AWS_AUTOSCALING_API PutScalingPolicyResult() = default;
37
39
42 inline const Aws::String& GetPolicyARN() const { return m_policyARN; }
43 template <typename PolicyARNT = Aws::String>
44 void SetPolicyARN(PolicyARNT&& value) {
45 m_policyARNHasBeenSet = true;
46 m_policyARN = std::forward<PolicyARNT>(value);
47 }
48 template <typename PolicyARNT = Aws::String>
50 SetPolicyARN(std::forward<PolicyARNT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Alarm>& GetAlarms() const { return m_alarms; }
60 template <typename AlarmsT = Aws::Vector<Alarm>>
61 void SetAlarms(AlarmsT&& value) {
62 m_alarmsHasBeenSet = true;
63 m_alarms = std::forward<AlarmsT>(value);
64 }
65 template <typename AlarmsT = Aws::Vector<Alarm>>
67 SetAlarms(std::forward<AlarmsT>(value));
68 return *this;
69 }
70 template <typename AlarmsT = Alarm>
72 m_alarmsHasBeenSet = true;
73 m_alarms.emplace_back(std::forward<AlarmsT>(value));
74 return *this;
75 }
77
79
80 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
81 template <typename ResponseMetadataT = ResponseMetadata>
82 void SetResponseMetadata(ResponseMetadataT&& value) {
83 m_responseMetadataHasBeenSet = true;
84 m_responseMetadata = std::forward<ResponseMetadataT>(value);
85 }
86 template <typename ResponseMetadataT = ResponseMetadata>
87 PutScalingPolicyResult& WithResponseMetadata(ResponseMetadataT&& value) {
88 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
89 return *this;
90 }
92 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
93
94 private:
95 Aws::String m_policyARN;
96
97 Aws::Vector<Alarm> m_alarms;
98
99 ResponseMetadata m_responseMetadata;
100 Aws::Http::HttpResponseCode m_HttpResponseCode;
101 bool m_policyARNHasBeenSet = false;
102 bool m_alarmsHasBeenSet = false;
103 bool m_responseMetadataHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace AutoScaling
108} // namespace Aws
PutScalingPolicyResult & WithAlarms(AlarmsT &&value)
AWS_AUTOSCALING_API PutScalingPolicyResult()=default
AWS_AUTOSCALING_API PutScalingPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_AUTOSCALING_API PutScalingPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
PutScalingPolicyResult & AddAlarms(AlarmsT &&value)
const Aws::Vector< Alarm > & GetAlarms() const
PutScalingPolicyResult & WithResponseMetadata(ResponseMetadataT &&value)
PutScalingPolicyResult & WithPolicyARN(PolicyARNT &&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