AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoScalingSettingsDescription.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/dynamodb/model/AutoScalingPolicyDescription.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 DynamoDB
24{
25namespace Model
26{
27
35 {
36 public:
40 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline long long GetMinimumUnits() const{ return m_minimumUnits; }
49 inline bool MinimumUnitsHasBeenSet() const { return m_minimumUnitsHasBeenSet; }
50 inline void SetMinimumUnits(long long value) { m_minimumUnitsHasBeenSet = true; m_minimumUnits = value; }
51 inline AutoScalingSettingsDescription& WithMinimumUnits(long long value) { SetMinimumUnits(value); return *this;}
53
55
59 inline long long GetMaximumUnits() const{ return m_maximumUnits; }
60 inline bool MaximumUnitsHasBeenSet() const { return m_maximumUnitsHasBeenSet; }
61 inline void SetMaximumUnits(long long value) { m_maximumUnitsHasBeenSet = true; m_maximumUnits = value; }
62 inline AutoScalingSettingsDescription& WithMaximumUnits(long long value) { SetMaximumUnits(value); return *this;}
64
66
69 inline bool GetAutoScalingDisabled() const{ return m_autoScalingDisabled; }
70 inline bool AutoScalingDisabledHasBeenSet() const { return m_autoScalingDisabledHasBeenSet; }
71 inline void SetAutoScalingDisabled(bool value) { m_autoScalingDisabledHasBeenSet = true; m_autoScalingDisabled = value; }
74
76
79 inline const Aws::String& GetAutoScalingRoleArn() const{ return m_autoScalingRoleArn; }
80 inline bool AutoScalingRoleArnHasBeenSet() const { return m_autoScalingRoleArnHasBeenSet; }
81 inline void SetAutoScalingRoleArn(const Aws::String& value) { m_autoScalingRoleArnHasBeenSet = true; m_autoScalingRoleArn = value; }
82 inline void SetAutoScalingRoleArn(Aws::String&& value) { m_autoScalingRoleArnHasBeenSet = true; m_autoScalingRoleArn = std::move(value); }
83 inline void SetAutoScalingRoleArn(const char* value) { m_autoScalingRoleArnHasBeenSet = true; m_autoScalingRoleArn.assign(value); }
86 inline AutoScalingSettingsDescription& WithAutoScalingRoleArn(const char* value) { SetAutoScalingRoleArn(value); return *this;}
88
90
93 inline const Aws::Vector<AutoScalingPolicyDescription>& GetScalingPolicies() const{ return m_scalingPolicies; }
94 inline bool ScalingPoliciesHasBeenSet() const { return m_scalingPoliciesHasBeenSet; }
95 inline void SetScalingPolicies(const Aws::Vector<AutoScalingPolicyDescription>& value) { m_scalingPoliciesHasBeenSet = true; m_scalingPolicies = value; }
96 inline void SetScalingPolicies(Aws::Vector<AutoScalingPolicyDescription>&& value) { m_scalingPoliciesHasBeenSet = true; m_scalingPolicies = std::move(value); }
99 inline AutoScalingSettingsDescription& AddScalingPolicies(const AutoScalingPolicyDescription& value) { m_scalingPoliciesHasBeenSet = true; m_scalingPolicies.push_back(value); return *this; }
100 inline AutoScalingSettingsDescription& AddScalingPolicies(AutoScalingPolicyDescription&& value) { m_scalingPoliciesHasBeenSet = true; m_scalingPolicies.push_back(std::move(value)); return *this; }
102 private:
103
104 long long m_minimumUnits;
105 bool m_minimumUnitsHasBeenSet = false;
106
107 long long m_maximumUnits;
108 bool m_maximumUnitsHasBeenSet = false;
109
110 bool m_autoScalingDisabled;
111 bool m_autoScalingDisabledHasBeenSet = false;
112
113 Aws::String m_autoScalingRoleArn;
114 bool m_autoScalingRoleArnHasBeenSet = false;
115
117 bool m_scalingPoliciesHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace DynamoDB
122} // namespace Aws
AutoScalingSettingsDescription & WithScalingPolicies(const Aws::Vector< AutoScalingPolicyDescription > &value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
AutoScalingSettingsDescription & AddScalingPolicies(AutoScalingPolicyDescription &&value)
AutoScalingSettingsDescription & AddScalingPolicies(const AutoScalingPolicyDescription &value)
AutoScalingSettingsDescription & WithAutoScalingRoleArn(Aws::String &&value)
AutoScalingSettingsDescription & WithMaximumUnits(long long value)
AutoScalingSettingsDescription & WithMinimumUnits(long long value)
void SetScalingPolicies(Aws::Vector< AutoScalingPolicyDescription > &&value)
AWS_DYNAMODB_API AutoScalingSettingsDescription(Aws::Utils::Json::JsonView jsonValue)
AutoScalingSettingsDescription & WithAutoScalingRoleArn(const char *value)
AutoScalingSettingsDescription & WithAutoScalingRoleArn(const Aws::String &value)
const Aws::Vector< AutoScalingPolicyDescription > & GetScalingPolicies() const
AutoScalingSettingsDescription & WithScalingPolicies(Aws::Vector< AutoScalingPolicyDescription > &&value)
void SetScalingPolicies(const Aws::Vector< AutoScalingPolicyDescription > &value)
AWS_DYNAMODB_API AutoScalingSettingsDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoScalingSettingsDescription & WithAutoScalingDisabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue