AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScalingPolicy.h
1
6#pragma once
7#include <aws/autoscaling-plans/AutoScalingPlans_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/autoscaling-plans/model/PolicyType.h>
10#include <aws/autoscaling-plans/model/TargetTrackingConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AutoScalingPlans
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_AUTOSCALINGPLANS_API ScalingPolicy();
37 AWS_AUTOSCALINGPLANS_API ScalingPolicy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AUTOSCALINGPLANS_API ScalingPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
47 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
48 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
49 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
50 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
51 inline ScalingPolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
52 inline ScalingPolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
53 inline ScalingPolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
55
57
60 inline const PolicyType& GetPolicyType() const{ return m_policyType; }
61 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
62 inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
63 inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
64 inline ScalingPolicy& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
65 inline ScalingPolicy& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
67
69
73 inline const TargetTrackingConfiguration& GetTargetTrackingConfiguration() const{ return m_targetTrackingConfiguration; }
74 inline bool TargetTrackingConfigurationHasBeenSet() const { return m_targetTrackingConfigurationHasBeenSet; }
75 inline void SetTargetTrackingConfiguration(const TargetTrackingConfiguration& value) { m_targetTrackingConfigurationHasBeenSet = true; m_targetTrackingConfiguration = value; }
76 inline void SetTargetTrackingConfiguration(TargetTrackingConfiguration&& value) { m_targetTrackingConfigurationHasBeenSet = true; m_targetTrackingConfiguration = std::move(value); }
80 private:
81
82 Aws::String m_policyName;
83 bool m_policyNameHasBeenSet = false;
84
85 PolicyType m_policyType;
86 bool m_policyTypeHasBeenSet = false;
87
88 TargetTrackingConfiguration m_targetTrackingConfiguration;
89 bool m_targetTrackingConfigurationHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace AutoScalingPlans
94} // namespace Aws
void SetPolicyName(const Aws::String &value)
ScalingPolicy & WithPolicyType(PolicyType &&value)
void SetTargetTrackingConfiguration(const TargetTrackingConfiguration &value)
ScalingPolicy & WithTargetTrackingConfiguration(const TargetTrackingConfiguration &value)
AWS_AUTOSCALINGPLANS_API ScalingPolicy()
AWS_AUTOSCALINGPLANS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPolicyName() const
ScalingPolicy & WithPolicyType(const PolicyType &value)
ScalingPolicy & WithPolicyName(const char *value)
ScalingPolicy & WithPolicyName(Aws::String &&value)
ScalingPolicy & WithTargetTrackingConfiguration(TargetTrackingConfiguration &&value)
const PolicyType & GetPolicyType() const
ScalingPolicy & WithPolicyName(const Aws::String &value)
void SetPolicyType(const PolicyType &value)
const TargetTrackingConfiguration & GetTargetTrackingConfiguration() const
AWS_AUTOSCALINGPLANS_API ScalingPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetTargetTrackingConfiguration(TargetTrackingConfiguration &&value)
AWS_AUTOSCALINGPLANS_API ScalingPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue