AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
PutScalingPolicyResult.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/Alarm.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ApplicationAutoScaling {
25namespace Model {
27 public:
28 AWS_APPLICATIONAUTOSCALING_API PutScalingPolicyResult() = default;
31
33
36 inline const Aws::String& GetPolicyARN() const { return m_policyARN; }
37 template <typename PolicyARNT = Aws::String>
38 void SetPolicyARN(PolicyARNT&& value) {
39 m_policyARNHasBeenSet = true;
40 m_policyARN = std::forward<PolicyARNT>(value);
41 }
42 template <typename PolicyARNT = Aws::String>
44 SetPolicyARN(std::forward<PolicyARNT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Vector<Alarm>& GetAlarms() const { return m_alarms; }
54 template <typename AlarmsT = Aws::Vector<Alarm>>
55 void SetAlarms(AlarmsT&& value) {
56 m_alarmsHasBeenSet = true;
57 m_alarms = std::forward<AlarmsT>(value);
58 }
59 template <typename AlarmsT = Aws::Vector<Alarm>>
61 SetAlarms(std::forward<AlarmsT>(value));
62 return *this;
63 }
64 template <typename AlarmsT = Alarm>
66 m_alarmsHasBeenSet = true;
67 m_alarms.emplace_back(std::forward<AlarmsT>(value));
68 return *this;
69 }
71
73
74 inline const Aws::String& GetRequestId() const { return m_requestId; }
75 template <typename RequestIdT = Aws::String>
76 void SetRequestId(RequestIdT&& value) {
77 m_requestIdHasBeenSet = true;
78 m_requestId = std::forward<RequestIdT>(value);
79 }
80 template <typename RequestIdT = Aws::String>
82 SetRequestId(std::forward<RequestIdT>(value));
83 return *this;
84 }
86 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
87
88 private:
89 Aws::String m_policyARN;
90
91 Aws::Vector<Alarm> m_alarms;
92
93 Aws::String m_requestId;
94 Aws::Http::HttpResponseCode m_HttpResponseCode;
95 bool m_policyARNHasBeenSet = false;
96 bool m_alarmsHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace ApplicationAutoScaling
102} // namespace Aws
AWS_APPLICATIONAUTOSCALING_API PutScalingPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
PutScalingPolicyResult & WithPolicyARN(PolicyARNT &&value)
AWS_APPLICATIONAUTOSCALING_API PutScalingPolicyResult()=default
PutScalingPolicyResult & WithRequestId(RequestIdT &&value)
AWS_APPLICATIONAUTOSCALING_API PutScalingPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue