AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutScalingPolicyResult.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/autoscaling/model/ResponseMetadata.h>
11#include <aws/autoscaling/model/Alarm.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace AutoScaling
27{
28namespace Model
29{
36 {
37 public:
38 AWS_AUTOSCALING_API PutScalingPolicyResult();
41
42
44
47 inline const Aws::String& GetPolicyARN() const{ return m_policyARN; }
48 inline void SetPolicyARN(const Aws::String& value) { m_policyARN = value; }
49 inline void SetPolicyARN(Aws::String&& value) { m_policyARN = std::move(value); }
50 inline void SetPolicyARN(const char* value) { m_policyARN.assign(value); }
51 inline PutScalingPolicyResult& WithPolicyARN(const Aws::String& value) { SetPolicyARN(value); return *this;}
52 inline PutScalingPolicyResult& WithPolicyARN(Aws::String&& value) { SetPolicyARN(std::move(value)); return *this;}
53 inline PutScalingPolicyResult& WithPolicyARN(const char* value) { SetPolicyARN(value); return *this;}
55
57
60 inline const Aws::Vector<Alarm>& GetAlarms() const{ return m_alarms; }
61 inline void SetAlarms(const Aws::Vector<Alarm>& value) { m_alarms = value; }
62 inline void SetAlarms(Aws::Vector<Alarm>&& value) { m_alarms = std::move(value); }
63 inline PutScalingPolicyResult& WithAlarms(const Aws::Vector<Alarm>& value) { SetAlarms(value); return *this;}
64 inline PutScalingPolicyResult& WithAlarms(Aws::Vector<Alarm>&& value) { SetAlarms(std::move(value)); return *this;}
65 inline PutScalingPolicyResult& AddAlarms(const Alarm& value) { m_alarms.push_back(value); return *this; }
66 inline PutScalingPolicyResult& AddAlarms(Alarm&& value) { m_alarms.push_back(std::move(value)); return *this; }
68
70
71 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
72 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
73 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
75 inline PutScalingPolicyResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
77 private:
78
79 Aws::String m_policyARN;
80
81 Aws::Vector<Alarm> m_alarms;
82
83 ResponseMetadata m_responseMetadata;
84 };
85
86} // namespace Model
87} // namespace AutoScaling
88} // namespace Aws
PutScalingPolicyResult & AddAlarms(const Alarm &value)
PutScalingPolicyResult & WithPolicyARN(const Aws::String &value)
void SetAlarms(const Aws::Vector< Alarm > &value)
PutScalingPolicyResult & WithResponseMetadata(const ResponseMetadata &value)
AWS_AUTOSCALING_API PutScalingPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
PutScalingPolicyResult & WithAlarms(Aws::Vector< Alarm > &&value)
void SetResponseMetadata(const ResponseMetadata &value)
PutScalingPolicyResult & WithResponseMetadata(ResponseMetadata &&value)
PutScalingPolicyResult & WithAlarms(const Aws::Vector< Alarm > &value)
AWS_AUTOSCALING_API PutScalingPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Vector< Alarm > & GetAlarms() const
PutScalingPolicyResult & AddAlarms(Alarm &&value)
PutScalingPolicyResult & WithPolicyARN(const char *value)
PutScalingPolicyResult & WithPolicyARN(Aws::String &&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