AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateScalingPlanRequest.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 CreateScalingPlanRequest();
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 "CreateScalingPlan"; }
34
35 AWS_AUTOSCALINGPLANS_API Aws::String SerializePayload() const override;
36
37 AWS_AUTOSCALINGPLANS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetScalingPlanName() const{ return m_scalingPlanName; }
46 inline bool ScalingPlanNameHasBeenSet() const { return m_scalingPlanNameHasBeenSet; }
47 inline void SetScalingPlanName(const Aws::String& value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName = value; }
48 inline void SetScalingPlanName(Aws::String&& value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName = std::move(value); }
49 inline void SetScalingPlanName(const char* value) { m_scalingPlanNameHasBeenSet = true; m_scalingPlanName.assign(value); }
50 inline CreateScalingPlanRequest& WithScalingPlanName(const Aws::String& value) { SetScalingPlanName(value); return *this;}
51 inline CreateScalingPlanRequest& WithScalingPlanName(Aws::String&& value) { SetScalingPlanName(std::move(value)); return *this;}
52 inline CreateScalingPlanRequest& WithScalingPlanName(const char* value) { SetScalingPlanName(value); return *this;}
54
56
62 inline const ApplicationSource& GetApplicationSource() const{ return m_applicationSource; }
63 inline bool ApplicationSourceHasBeenSet() const { return m_applicationSourceHasBeenSet; }
64 inline void SetApplicationSource(const ApplicationSource& value) { m_applicationSourceHasBeenSet = true; m_applicationSource = value; }
65 inline void SetApplicationSource(ApplicationSource&& value) { m_applicationSourceHasBeenSet = true; m_applicationSource = std::move(value); }
67 inline CreateScalingPlanRequest& WithApplicationSource(ApplicationSource&& value) { SetApplicationSource(std::move(value)); return *this;}
69
71
76 inline const Aws::Vector<ScalingInstruction>& GetScalingInstructions() const{ return m_scalingInstructions; }
77 inline bool ScalingInstructionsHasBeenSet() const { return m_scalingInstructionsHasBeenSet; }
78 inline void SetScalingInstructions(const Aws::Vector<ScalingInstruction>& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions = value; }
79 inline void SetScalingInstructions(Aws::Vector<ScalingInstruction>&& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions = std::move(value); }
82 inline CreateScalingPlanRequest& AddScalingInstructions(const ScalingInstruction& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions.push_back(value); return *this; }
83 inline CreateScalingPlanRequest& AddScalingInstructions(ScalingInstruction&& value) { m_scalingInstructionsHasBeenSet = true; m_scalingInstructions.push_back(std::move(value)); return *this; }
85 private:
86
87 Aws::String m_scalingPlanName;
88 bool m_scalingPlanNameHasBeenSet = false;
89
90 ApplicationSource m_applicationSource;
91 bool m_applicationSourceHasBeenSet = false;
92
93 Aws::Vector<ScalingInstruction> m_scalingInstructions;
94 bool m_scalingInstructionsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace AutoScalingPlans
99} // namespace Aws
CreateScalingPlanRequest & WithScalingPlanName(const char *value)
CreateScalingPlanRequest & AddScalingInstructions(const ScalingInstruction &value)
void SetScalingInstructions(const Aws::Vector< ScalingInstruction > &value)
CreateScalingPlanRequest & WithApplicationSource(const ApplicationSource &value)
CreateScalingPlanRequest & WithScalingPlanName(Aws::String &&value)
AWS_AUTOSCALINGPLANS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateScalingPlanRequest & WithScalingInstructions(const Aws::Vector< ScalingInstruction > &value)
void SetScalingInstructions(Aws::Vector< ScalingInstruction > &&value)
CreateScalingPlanRequest & WithApplicationSource(ApplicationSource &&value)
CreateScalingPlanRequest & AddScalingInstructions(ScalingInstruction &&value)
CreateScalingPlanRequest & WithScalingPlanName(const Aws::String &value)
const Aws::Vector< ScalingInstruction > & GetScalingInstructions() const
CreateScalingPlanRequest & WithScalingInstructions(Aws::Vector< ScalingInstruction > &&value)
AWS_AUTOSCALINGPLANS_API Aws::String SerializePayload() const override
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