AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateScalingPlanRequest.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/AWSString.h>
10#include <aws/autoscaling-plans/model/ApplicationSource.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/autoscaling-plans/model/ScalingInstruction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AutoScalingPlans
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_AUTOSCALINGPLANS_API UpdateScalingPlanRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateScalingPlan"; }
34
35 AWS_AUTOSCALINGPLANS_API Aws::String SerializePayload() const override;
36
37 AWS_AUTOSCALINGPLANS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetScalingPlanName() const { return m_scalingPlanName; }
45 inline bool ScalingPlanNameHasBeenSet() const { return m_scalingPlanNameHasBeenSet; }
46 template<typename ScalingPlanNameT = Aws::String>
47 void SetScalingPlanName(ScalingPlanNameT&& value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName = std::forward<ScalingPlanNameT>(value); }
48 template<typename ScalingPlanNameT = Aws::String>
49 UpdateScalingPlanRequest& WithScalingPlanName(ScalingPlanNameT&& value) { SetScalingPlanName(std::forward<ScalingPlanNameT>(value)); return *this;}
51
53
57 inline long long GetScalingPlanVersion() const { return m_scalingPlanVersion; }
58 inline bool ScalingPlanVersionHasBeenSet() const { return m_scalingPlanVersionHasBeenSet; }
59 inline void SetScalingPlanVersion(long long value) { m_scalingPlanVersionHasBeenSet = true; m_scalingPlanVersion = value; }
60 inline UpdateScalingPlanRequest& WithScalingPlanVersion(long long value) { SetScalingPlanVersion(value); return *this;}
62
64
69 inline const ApplicationSource& GetApplicationSource() const { return m_applicationSource; }
70 inline bool ApplicationSourceHasBeenSet() const { return m_applicationSourceHasBeenSet; }
71 template<typename ApplicationSourceT = ApplicationSource>
72 void SetApplicationSource(ApplicationSourceT&& value) { m_applicationSourceHasBeenSet = true; m_applicationSource = std::forward<ApplicationSourceT>(value); }
73 template<typename ApplicationSourceT = ApplicationSource>
74 UpdateScalingPlanRequest& WithApplicationSource(ApplicationSourceT&& value) { SetApplicationSource(std::forward<ApplicationSourceT>(value)); return *this;}
76
78
83 inline const Aws::Vector<ScalingInstruction>& GetScalingInstructions() const { return m_scalingInstructions; }
84 inline bool ScalingInstructionsHasBeenSet() const { return m_scalingInstructionsHasBeenSet; }
85 template<typename ScalingInstructionsT = Aws::Vector<ScalingInstruction>>
86 void SetScalingInstructions(ScalingInstructionsT&& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions = std::forward<ScalingInstructionsT>(value); }
87 template<typename ScalingInstructionsT = Aws::Vector<ScalingInstruction>>
88 UpdateScalingPlanRequest& WithScalingInstructions(ScalingInstructionsT&& value) { SetScalingInstructions(std::forward<ScalingInstructionsT>(value)); return *this;}
89 template<typename ScalingInstructionsT = ScalingInstruction>
90 UpdateScalingPlanRequest& AddScalingInstructions(ScalingInstructionsT&& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions.emplace_back(std::forward<ScalingInstructionsT>(value)); return *this; }
92 private:
93
94 Aws::String m_scalingPlanName;
95 bool m_scalingPlanNameHasBeenSet = false;
96
97 long long m_scalingPlanVersion{0};
98 bool m_scalingPlanVersionHasBeenSet = false;
99
100 ApplicationSource m_applicationSource;
101 bool m_applicationSourceHasBeenSet = false;
102
103 Aws::Vector<ScalingInstruction> m_scalingInstructions;
104 bool m_scalingInstructionsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace AutoScalingPlans
109} // 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