AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeScalingPlansRequest.h
1
6#pragma once
7#include <aws/autoscaling-plans/AutoScalingPlans_EXPORTS.h>
8#include <aws/autoscaling-plans/AutoScalingPlansRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/autoscaling-plans/model/ApplicationSource.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AutoScalingPlans
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_AUTOSCALINGPLANS_API DescribeScalingPlansRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "DescribeScalingPlans"; }
33
34 AWS_AUTOSCALINGPLANS_API Aws::String SerializePayload() const override;
35
36 AWS_AUTOSCALINGPLANS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline const Aws::Vector<Aws::String>& GetScalingPlanNames() const { return m_scalingPlanNames; }
45 inline bool ScalingPlanNamesHasBeenSet() const { return m_scalingPlanNamesHasBeenSet; }
46 template<typename ScalingPlanNamesT = Aws::Vector<Aws::String>>
47 void SetScalingPlanNames(ScalingPlanNamesT&& value) { m_scalingPlanNamesHasBeenSet = true; m_scalingPlanNames = std::forward<ScalingPlanNamesT>(value); }
48 template<typename ScalingPlanNamesT = Aws::Vector<Aws::String>>
49 DescribeScalingPlansRequest& WithScalingPlanNames(ScalingPlanNamesT&& value) { SetScalingPlanNames(std::forward<ScalingPlanNamesT>(value)); return *this;}
50 template<typename ScalingPlanNamesT = Aws::String>
51 DescribeScalingPlansRequest& AddScalingPlanNames(ScalingPlanNamesT&& value) { m_scalingPlanNamesHasBeenSet = true; m_scalingPlanNames.emplace_back(std::forward<ScalingPlanNamesT>(value)); return *this; }
53
55
60 inline long long GetScalingPlanVersion() const { return m_scalingPlanVersion; }
61 inline bool ScalingPlanVersionHasBeenSet() const { return m_scalingPlanVersionHasBeenSet; }
62 inline void SetScalingPlanVersion(long long value) { m_scalingPlanVersionHasBeenSet = true; m_scalingPlanVersion = value; }
63 inline DescribeScalingPlansRequest& WithScalingPlanVersion(long long value) { SetScalingPlanVersion(value); return *this;}
65
67
71 inline const Aws::Vector<ApplicationSource>& GetApplicationSources() const { return m_applicationSources; }
72 inline bool ApplicationSourcesHasBeenSet() const { return m_applicationSourcesHasBeenSet; }
73 template<typename ApplicationSourcesT = Aws::Vector<ApplicationSource>>
74 void SetApplicationSources(ApplicationSourcesT&& value) { m_applicationSourcesHasBeenSet = true; m_applicationSources = std::forward<ApplicationSourcesT>(value); }
75 template<typename ApplicationSourcesT = Aws::Vector<ApplicationSource>>
76 DescribeScalingPlansRequest& WithApplicationSources(ApplicationSourcesT&& value) { SetApplicationSources(std::forward<ApplicationSourcesT>(value)); return *this;}
77 template<typename ApplicationSourcesT = ApplicationSource>
78 DescribeScalingPlansRequest& AddApplicationSources(ApplicationSourcesT&& value) { m_applicationSourcesHasBeenSet = true; m_applicationSources.emplace_back(std::forward<ApplicationSourcesT>(value)); return *this; }
80
82
86 inline int GetMaxResults() const { return m_maxResults; }
87 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
88 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
89 inline DescribeScalingPlansRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
91
93
96 inline const Aws::String& GetNextToken() const { return m_nextToken; }
97 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
98 template<typename NextTokenT = Aws::String>
99 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
100 template<typename NextTokenT = Aws::String>
101 DescribeScalingPlansRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
103 private:
104
105 Aws::Vector<Aws::String> m_scalingPlanNames;
106 bool m_scalingPlanNamesHasBeenSet = false;
107
108 long long m_scalingPlanVersion{0};
109 bool m_scalingPlanVersionHasBeenSet = false;
110
111 Aws::Vector<ApplicationSource> m_applicationSources;
112 bool m_applicationSourcesHasBeenSet = false;
113
114 int m_maxResults{0};
115 bool m_maxResultsHasBeenSet = false;
116
117 Aws::String m_nextToken;
118 bool m_nextTokenHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace AutoScalingPlans
123} // 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