AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetScalingPlanName(const Aws::String& value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName = value; }
47 inline void SetScalingPlanName(Aws::String&& value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName = std::move(value); }
48 inline void SetScalingPlanName(const char* value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName.assign(value); }
49 inline UpdateScalingPlanRequest& WithScalingPlanName(const Aws::String& value) { SetScalingPlanName(value); return *this;}
50 inline UpdateScalingPlanRequest& WithScalingPlanName(Aws::String&& value) { SetScalingPlanName(std::move(value)); return *this;}
51 inline UpdateScalingPlanRequest& WithScalingPlanName(const char* value) { SetScalingPlanName(value); return *this;}
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) { m_scalingPlanVersionHasBeenSet = true; m_scalingPlanVersion = value; }
62 inline UpdateScalingPlanRequest& WithScalingPlanVersion(long long value) { SetScalingPlanVersion(value); return *this;}
64
66
71 inline const ApplicationSource& GetApplicationSource() const{ return m_applicationSource; }
72 inline bool ApplicationSourceHasBeenSet() const { return m_applicationSourceHasBeenSet; }
73 inline void SetApplicationSource(const ApplicationSource& value) { m_applicationSourceHasBeenSet = true; m_applicationSource = value; }
74 inline void SetApplicationSource(ApplicationSource&& value) { m_applicationSourceHasBeenSet = true; m_applicationSource = std::move(value); }
76 inline UpdateScalingPlanRequest& WithApplicationSource(ApplicationSource&& value) { SetApplicationSource(std::move(value)); return *this;}
78
80
85 inline const Aws::Vector<ScalingInstruction>& GetScalingInstructions() const{ return m_scalingInstructions; }
86 inline bool ScalingInstructionsHasBeenSet() const { return m_scalingInstructionsHasBeenSet; }
87 inline void SetScalingInstructions(const Aws::Vector<ScalingInstruction>& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions = value; }
88 inline void SetScalingInstructions(Aws::Vector<ScalingInstruction>&& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions = std::move(value); }
91 inline UpdateScalingPlanRequest& AddScalingInstructions(const ScalingInstruction& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions.push_back(value); return *this; }
92 inline UpdateScalingPlanRequest& AddScalingInstructions(ScalingInstruction&& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions.push_back(std::move(value)); return *this; }
94 private:
95
96 Aws::String m_scalingPlanName;
97 bool m_scalingPlanNameHasBeenSet = false;
98
99 long long m_scalingPlanVersion;
100 bool m_scalingPlanVersionHasBeenSet = false;
101
102 ApplicationSource m_applicationSource;
103 bool m_applicationSourceHasBeenSet = false;
104
105 Aws::Vector<ScalingInstruction> m_scalingInstructions;
106 bool m_scalingInstructionsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace AutoScalingPlans
111} // namespace Aws
const Aws::Vector< ScalingInstruction > & GetScalingInstructions() const
UpdateScalingPlanRequest & AddScalingInstructions(ScalingInstruction &&value)
UpdateScalingPlanRequest & WithApplicationSource(const ApplicationSource &value)
UpdateScalingPlanRequest & WithScalingPlanName(const Aws::String &value)
UpdateScalingPlanRequest & WithApplicationSource(ApplicationSource &&value)
AWS_AUTOSCALINGPLANS_API Aws::String SerializePayload() const override
UpdateScalingPlanRequest & WithScalingPlanName(Aws::String &&value)
UpdateScalingPlanRequest & WithScalingInstructions(Aws::Vector< ScalingInstruction > &&value)
AWS_AUTOSCALINGPLANS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateScalingPlanRequest & AddScalingInstructions(const ScalingInstruction &value)
void SetScalingInstructions(Aws::Vector< ScalingInstruction > &&value)
UpdateScalingPlanRequest & WithScalingInstructions(const Aws::Vector< ScalingInstruction > &value)
UpdateScalingPlanRequest & WithScalingPlanName(const char *value)
UpdateScalingPlanRequest & WithScalingPlanVersion(long long value)
void SetScalingInstructions(const Aws::Vector< ScalingInstruction > &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