AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateScalingPlanRequest.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/autoscaling-plans/model/ScalingInstruction.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace AutoScalingPlans {
18namespace Model {
19
23 public:
24 AWS_AUTOSCALINGPLANS_API UpdateScalingPlanRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateScalingPlan"; }
31
32 AWS_AUTOSCALINGPLANS_API Aws::String SerializePayload() const override;
33
34 AWS_AUTOSCALINGPLANS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetScalingPlanName() const { return m_scalingPlanName; }
41 inline bool ScalingPlanNameHasBeenSet() const { return m_scalingPlanNameHasBeenSet; }
42 template <typename ScalingPlanNameT = Aws::String>
43 void SetScalingPlanName(ScalingPlanNameT&& value) {
44 m_scalingPlanNameHasBeenSet = true;
45 m_scalingPlanName = std::forward<ScalingPlanNameT>(value);
46 }
47 template <typename ScalingPlanNameT = Aws::String>
48 UpdateScalingPlanRequest& WithScalingPlanName(ScalingPlanNameT&& value) {
49 SetScalingPlanName(std::forward<ScalingPlanNameT>(value));
50 return *this;
51 }
53
55
59 inline long long GetScalingPlanVersion() const { return m_scalingPlanVersion; }
60 inline bool ScalingPlanVersionHasBeenSet() const { return m_scalingPlanVersionHasBeenSet; }
61 inline void SetScalingPlanVersion(long long value) {
62 m_scalingPlanVersionHasBeenSet = true;
63 m_scalingPlanVersion = value;
64 }
67 return *this;
68 }
70
72
77 inline const ApplicationSource& GetApplicationSource() const { return m_applicationSource; }
78 inline bool ApplicationSourceHasBeenSet() const { return m_applicationSourceHasBeenSet; }
79 template <typename ApplicationSourceT = ApplicationSource>
80 void SetApplicationSource(ApplicationSourceT&& value) {
81 m_applicationSourceHasBeenSet = true;
82 m_applicationSource = std::forward<ApplicationSourceT>(value);
83 }
84 template <typename ApplicationSourceT = ApplicationSource>
85 UpdateScalingPlanRequest& WithApplicationSource(ApplicationSourceT&& value) {
86 SetApplicationSource(std::forward<ApplicationSourceT>(value));
87 return *this;
88 }
90
92
97 inline const Aws::Vector<ScalingInstruction>& GetScalingInstructions() const { return m_scalingInstructions; }
98 inline bool ScalingInstructionsHasBeenSet() const { return m_scalingInstructionsHasBeenSet; }
99 template <typename ScalingInstructionsT = Aws::Vector<ScalingInstruction>>
100 void SetScalingInstructions(ScalingInstructionsT&& value) {
101 m_scalingInstructionsHasBeenSet = true;
102 m_scalingInstructions = std::forward<ScalingInstructionsT>(value);
103 }
104 template <typename ScalingInstructionsT = Aws::Vector<ScalingInstruction>>
105 UpdateScalingPlanRequest& WithScalingInstructions(ScalingInstructionsT&& value) {
106 SetScalingInstructions(std::forward<ScalingInstructionsT>(value));
107 return *this;
108 }
109 template <typename ScalingInstructionsT = ScalingInstruction>
110 UpdateScalingPlanRequest& AddScalingInstructions(ScalingInstructionsT&& value) {
111 m_scalingInstructionsHasBeenSet = true;
112 m_scalingInstructions.emplace_back(std::forward<ScalingInstructionsT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_scalingPlanName;
118
119 long long m_scalingPlanVersion{0};
120
121 ApplicationSource m_applicationSource;
122
123 Aws::Vector<ScalingInstruction> m_scalingInstructions;
124 bool m_scalingPlanNameHasBeenSet = false;
125 bool m_scalingPlanVersionHasBeenSet = false;
126 bool m_applicationSourceHasBeenSet = false;
127 bool m_scalingInstructionsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace AutoScalingPlans
132} // namespace Aws
const Aws::Vector< ScalingInstruction > & GetScalingInstructions() const
AWS_AUTOSCALINGPLANS_API UpdateScalingPlanRequest()=default
AWS_AUTOSCALINGPLANS_API Aws::String SerializePayload() const override
UpdateScalingPlanRequest & WithApplicationSource(ApplicationSourceT &&value)
UpdateScalingPlanRequest & WithScalingPlanName(ScalingPlanNameT &&value)
UpdateScalingPlanRequest & AddScalingInstructions(ScalingInstructionsT &&value)
AWS_AUTOSCALINGPLANS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateScalingPlanRequest & WithScalingInstructions(ScalingInstructionsT &&value)
UpdateScalingPlanRequest & WithScalingPlanVersion(long long 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