AWS SDK for C++  1.9.160
AWS SDK for C++
PutScalingPolicyResult.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace AutoScaling
27 {
28 namespace Model
29 {
36  {
37  public:
41 
42 
46  inline const Aws::String& GetPolicyARN() const{ return m_policyARN; }
47 
51  inline void SetPolicyARN(const Aws::String& value) { m_policyARN = value; }
52 
56  inline void SetPolicyARN(Aws::String&& value) { m_policyARN = std::move(value); }
57 
61  inline void SetPolicyARN(const char* value) { m_policyARN.assign(value); }
62 
66  inline PutScalingPolicyResult& WithPolicyARN(const Aws::String& value) { SetPolicyARN(value); return *this;}
67 
71  inline PutScalingPolicyResult& WithPolicyARN(Aws::String&& value) { SetPolicyARN(std::move(value)); return *this;}
72 
76  inline PutScalingPolicyResult& WithPolicyARN(const char* value) { SetPolicyARN(value); return *this;}
77 
78 
82  inline const Aws::Vector<Alarm>& GetAlarms() const{ return m_alarms; }
83 
87  inline void SetAlarms(const Aws::Vector<Alarm>& value) { m_alarms = value; }
88 
92  inline void SetAlarms(Aws::Vector<Alarm>&& value) { m_alarms = std::move(value); }
93 
97  inline PutScalingPolicyResult& WithAlarms(const Aws::Vector<Alarm>& value) { SetAlarms(value); return *this;}
98 
102  inline PutScalingPolicyResult& WithAlarms(Aws::Vector<Alarm>&& value) { SetAlarms(std::move(value)); return *this;}
103 
107  inline PutScalingPolicyResult& AddAlarms(const Alarm& value) { m_alarms.push_back(value); return *this; }
108 
112  inline PutScalingPolicyResult& AddAlarms(Alarm&& value) { m_alarms.push_back(std::move(value)); return *this; }
113 
114 
115 
116  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
117 
118 
119  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
120 
121 
122  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
123 
124 
125  inline PutScalingPolicyResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
126 
127 
128  inline PutScalingPolicyResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
129 
130  private:
131 
132  Aws::String m_policyARN;
133 
134  Aws::Vector<Alarm> m_alarms;
135 
136  ResponseMetadata m_responseMetadata;
137  };
138 
139 } // namespace Model
140 } // namespace AutoScaling
141 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::AutoScaling::Model::PutScalingPolicyResult::PutScalingPolicyResult
PutScalingPolicyResult()
Aws::AutoScaling::Model::PutScalingPolicyResult::PutScalingPolicyResult
PutScalingPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::AutoScaling::Model::PutScalingPolicyResult::WithResponseMetadata
PutScalingPolicyResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: PutScalingPolicyResult.h:125
Aws::AutoScaling::Model::PutScalingPolicyResult::WithAlarms
PutScalingPolicyResult & WithAlarms(Aws::Vector< Alarm > &&value)
Definition: PutScalingPolicyResult.h:102
Aws::AutoScaling::Model::PutScalingPolicyResult::WithPolicyARN
PutScalingPolicyResult & WithPolicyARN(Aws::String &&value)
Definition: PutScalingPolicyResult.h:71
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AutoScaling::Model::Alarm
Definition: Alarm.h:32
Aws::AutoScaling::Model::PutScalingPolicyResult::WithPolicyARN
PutScalingPolicyResult & WithPolicyARN(const Aws::String &value)
Definition: PutScalingPolicyResult.h:66
Aws::AutoScaling::Model::PutScalingPolicyResult::GetPolicyARN
const Aws::String & GetPolicyARN() const
Definition: PutScalingPolicyResult.h:46
AWSVector.h
Aws::AutoScaling::Model::PutScalingPolicyResult::SetPolicyARN
void SetPolicyARN(const Aws::String &value)
Definition: PutScalingPolicyResult.h:51
Aws::AutoScaling::Model::PutScalingPolicyResult::GetAlarms
const Aws::Vector< Alarm > & GetAlarms() const
Definition: PutScalingPolicyResult.h:82
Aws::AutoScaling::Model::PutScalingPolicyResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: PutScalingPolicyResult.h:116
Aws::AutoScaling::Model::PutScalingPolicyResult
Definition: PutScalingPolicyResult.h:36
Aws::AutoScaling::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::PutScalingPolicyResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: PutScalingPolicyResult.h:122
Aws::AutoScaling::Model::PutScalingPolicyResult::AddAlarms
PutScalingPolicyResult & AddAlarms(const Alarm &value)
Definition: PutScalingPolicyResult.h:107
Aws::AutoScaling::Model::PutScalingPolicyResult::SetAlarms
void SetAlarms(Aws::Vector< Alarm > &&value)
Definition: PutScalingPolicyResult.h:92
AWSString.h
Aws::AutoScaling::Model::PutScalingPolicyResult::SetPolicyARN
void SetPolicyARN(const char *value)
Definition: PutScalingPolicyResult.h:61
Aws::AutoScaling::Model::PutScalingPolicyResult::AddAlarms
PutScalingPolicyResult & AddAlarms(Alarm &&value)
Definition: PutScalingPolicyResult.h:112
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::PutScalingPolicyResult::WithAlarms
PutScalingPolicyResult & WithAlarms(const Aws::Vector< Alarm > &value)
Definition: PutScalingPolicyResult.h:97
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::PutScalingPolicyResult::operator=
PutScalingPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ResponseMetadata.h
Aws::AutoScaling::Model::PutScalingPolicyResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: PutScalingPolicyResult.h:119
Aws::AutoScaling::Model::PutScalingPolicyResult::SetAlarms
void SetAlarms(const Aws::Vector< Alarm > &value)
Definition: PutScalingPolicyResult.h:87
Aws::AutoScaling::Model::PutScalingPolicyResult::WithResponseMetadata
PutScalingPolicyResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: PutScalingPolicyResult.h:128
Aws::AutoScaling::Model::PutScalingPolicyResult::WithPolicyARN
PutScalingPolicyResult & WithPolicyARN(const char *value)
Definition: PutScalingPolicyResult.h:76
Aws::AutoScaling::Model::PutScalingPolicyResult::SetPolicyARN
void SetPolicyARN(Aws::String &&value)
Definition: PutScalingPolicyResult.h:56
Alarm.h