AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeScalingPlansRequest.h
1
6#pragma once
7#include <aws/autoscaling-plans/AutoScalingPlansRequest.h>
8#include <aws/autoscaling-plans/AutoScalingPlans_EXPORTS.h>
9#include <aws/autoscaling-plans/model/ApplicationSource.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 {
16namespace AutoScalingPlans {
17namespace Model {
18
22 public:
23 AWS_AUTOSCALINGPLANS_API DescribeScalingPlansRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeScalingPlans"; }
30
31 AWS_AUTOSCALINGPLANS_API Aws::String SerializePayload() const override;
32
33 AWS_AUTOSCALINGPLANS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline const Aws::Vector<Aws::String>& GetScalingPlanNames() const { return m_scalingPlanNames; }
41 inline bool ScalingPlanNamesHasBeenSet() const { return m_scalingPlanNamesHasBeenSet; }
42 template <typename ScalingPlanNamesT = Aws::Vector<Aws::String>>
43 void SetScalingPlanNames(ScalingPlanNamesT&& value) {
44 m_scalingPlanNamesHasBeenSet = true;
45 m_scalingPlanNames = std::forward<ScalingPlanNamesT>(value);
46 }
47 template <typename ScalingPlanNamesT = Aws::Vector<Aws::String>>
49 SetScalingPlanNames(std::forward<ScalingPlanNamesT>(value));
50 return *this;
51 }
52 template <typename ScalingPlanNamesT = Aws::String>
54 m_scalingPlanNamesHasBeenSet = true;
55 m_scalingPlanNames.emplace_back(std::forward<ScalingPlanNamesT>(value));
56 return *this;
57 }
59
61
66 inline long long GetScalingPlanVersion() const { return m_scalingPlanVersion; }
67 inline bool ScalingPlanVersionHasBeenSet() const { return m_scalingPlanVersionHasBeenSet; }
68 inline void SetScalingPlanVersion(long long value) {
69 m_scalingPlanVersionHasBeenSet = true;
70 m_scalingPlanVersion = value;
71 }
74 return *this;
75 }
77
79
83 inline const Aws::Vector<ApplicationSource>& GetApplicationSources() const { return m_applicationSources; }
84 inline bool ApplicationSourcesHasBeenSet() const { return m_applicationSourcesHasBeenSet; }
85 template <typename ApplicationSourcesT = Aws::Vector<ApplicationSource>>
86 void SetApplicationSources(ApplicationSourcesT&& value) {
87 m_applicationSourcesHasBeenSet = true;
88 m_applicationSources = std::forward<ApplicationSourcesT>(value);
89 }
90 template <typename ApplicationSourcesT = Aws::Vector<ApplicationSource>>
92 SetApplicationSources(std::forward<ApplicationSourcesT>(value));
93 return *this;
94 }
95 template <typename ApplicationSourcesT = ApplicationSource>
96 DescribeScalingPlansRequest& AddApplicationSources(ApplicationSourcesT&& value) {
97 m_applicationSourcesHasBeenSet = true;
98 m_applicationSources.emplace_back(std::forward<ApplicationSourcesT>(value));
99 return *this;
100 }
102
104
108 inline int GetMaxResults() const { return m_maxResults; }
109 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
110 inline void SetMaxResults(int value) {
111 m_maxResultsHasBeenSet = true;
112 m_maxResults = value;
113 }
115 SetMaxResults(value);
116 return *this;
117 }
119
121
124 inline const Aws::String& GetNextToken() const { return m_nextToken; }
125 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 template <typename NextTokenT = Aws::String>
127 void SetNextToken(NextTokenT&& value) {
128 m_nextTokenHasBeenSet = true;
129 m_nextToken = std::forward<NextTokenT>(value);
130 }
131 template <typename NextTokenT = Aws::String>
133 SetNextToken(std::forward<NextTokenT>(value));
134 return *this;
135 }
137 private:
138 Aws::Vector<Aws::String> m_scalingPlanNames;
139
140 long long m_scalingPlanVersion{0};
141
142 Aws::Vector<ApplicationSource> m_applicationSources;
143
144 int m_maxResults{0};
145
146 Aws::String m_nextToken;
147 bool m_scalingPlanNamesHasBeenSet = false;
148 bool m_scalingPlanVersionHasBeenSet = false;
149 bool m_applicationSourcesHasBeenSet = false;
150 bool m_maxResultsHasBeenSet = false;
151 bool m_nextTokenHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace AutoScalingPlans
156} // namespace Aws
AWS_AUTOSCALINGPLANS_API Aws::String SerializePayload() const override
DescribeScalingPlansRequest & WithScalingPlanVersion(long long value)
DescribeScalingPlansRequest & WithNextToken(NextTokenT &&value)
AWS_AUTOSCALINGPLANS_API DescribeScalingPlansRequest()=default
DescribeScalingPlansRequest & AddScalingPlanNames(ScalingPlanNamesT &&value)
DescribeScalingPlansRequest & WithApplicationSources(ApplicationSourcesT &&value)
AWS_AUTOSCALINGPLANS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeScalingPlansRequest & WithScalingPlanNames(ScalingPlanNamesT &&value)
const Aws::Vector< ApplicationSource > & GetApplicationSources() const
DescribeScalingPlansRequest & AddApplicationSources(ApplicationSourcesT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector