AWS SDK for C++  1.9.159
AWS SDK for C++
GameServerGroupAutoScalingPolicy.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GameLift
22 {
23 namespace Model
24 {
25 
39  {
40  public:
45 
46 
53  inline int GetEstimatedInstanceWarmup() const{ return m_estimatedInstanceWarmup; }
54 
61  inline bool EstimatedInstanceWarmupHasBeenSet() const { return m_estimatedInstanceWarmupHasBeenSet; }
62 
69  inline void SetEstimatedInstanceWarmup(int value) { m_estimatedInstanceWarmupHasBeenSet = true; m_estimatedInstanceWarmup = value; }
70 
77  inline GameServerGroupAutoScalingPolicy& WithEstimatedInstanceWarmup(int value) { SetEstimatedInstanceWarmup(value); return *this;}
78 
79 
87  inline const TargetTrackingConfiguration& GetTargetTrackingConfiguration() const{ return m_targetTrackingConfiguration; }
88 
96  inline bool TargetTrackingConfigurationHasBeenSet() const { return m_targetTrackingConfigurationHasBeenSet; }
97 
105  inline void SetTargetTrackingConfiguration(const TargetTrackingConfiguration& value) { m_targetTrackingConfigurationHasBeenSet = true; m_targetTrackingConfiguration = value; }
106 
114  inline void SetTargetTrackingConfiguration(TargetTrackingConfiguration&& value) { m_targetTrackingConfigurationHasBeenSet = true; m_targetTrackingConfiguration = std::move(value); }
115 
123  inline GameServerGroupAutoScalingPolicy& WithTargetTrackingConfiguration(const TargetTrackingConfiguration& value) { SetTargetTrackingConfiguration(value); return *this;}
124 
132  inline GameServerGroupAutoScalingPolicy& WithTargetTrackingConfiguration(TargetTrackingConfiguration&& value) { SetTargetTrackingConfiguration(std::move(value)); return *this;}
133 
134  private:
135 
136  int m_estimatedInstanceWarmup;
137  bool m_estimatedInstanceWarmupHasBeenSet;
138 
139  TargetTrackingConfiguration m_targetTrackingConfiguration;
140  bool m_targetTrackingConfigurationHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace GameLift
145 } // namespace Aws
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::operator=
GameServerGroupAutoScalingPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::TargetTrackingConfiguration
Definition: TargetTrackingConfiguration.h:37
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy
Definition: GameServerGroupAutoScalingPolicy.h:39
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::TargetTrackingConfigurationHasBeenSet
bool TargetTrackingConfigurationHasBeenSet() const
Definition: GameServerGroupAutoScalingPolicy.h:96
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::SetTargetTrackingConfiguration
void SetTargetTrackingConfiguration(TargetTrackingConfiguration &&value)
Definition: GameServerGroupAutoScalingPolicy.h:114
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::GetTargetTrackingConfiguration
const TargetTrackingConfiguration & GetTargetTrackingConfiguration() const
Definition: GameServerGroupAutoScalingPolicy.h:87
GameLift_EXPORTS.h
TargetTrackingConfiguration.h
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::GameServerGroupAutoScalingPolicy
GameServerGroupAutoScalingPolicy(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::GetEstimatedInstanceWarmup
int GetEstimatedInstanceWarmup() const
Definition: GameServerGroupAutoScalingPolicy.h:53
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::EstimatedInstanceWarmupHasBeenSet
bool EstimatedInstanceWarmupHasBeenSet() const
Definition: GameServerGroupAutoScalingPolicy.h:61
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::WithTargetTrackingConfiguration
GameServerGroupAutoScalingPolicy & WithTargetTrackingConfiguration(const TargetTrackingConfiguration &value)
Definition: GameServerGroupAutoScalingPolicy.h:123
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::WithEstimatedInstanceWarmup
GameServerGroupAutoScalingPolicy & WithEstimatedInstanceWarmup(int value)
Definition: GameServerGroupAutoScalingPolicy.h:77
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::WithTargetTrackingConfiguration
GameServerGroupAutoScalingPolicy & WithTargetTrackingConfiguration(TargetTrackingConfiguration &&value)
Definition: GameServerGroupAutoScalingPolicy.h:132
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::GameServerGroupAutoScalingPolicy
GameServerGroupAutoScalingPolicy()
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::SetEstimatedInstanceWarmup
void SetEstimatedInstanceWarmup(int value)
Definition: GameServerGroupAutoScalingPolicy.h:69
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::SetTargetTrackingConfiguration
void SetTargetTrackingConfiguration(const TargetTrackingConfiguration &value)
Definition: GameServerGroupAutoScalingPolicy.h:105
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::GameServerGroupAutoScalingPolicy::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const