AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceDefinition.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/model/GameServerGroupInstanceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLift
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_GAMELIFT_API InstanceDefinition();
43 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const GameServerGroupInstanceType& GetInstanceType() const{ return m_instanceType; }
51 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
52 inline void SetInstanceType(const GameServerGroupInstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
53 inline void SetInstanceType(GameServerGroupInstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
55 inline InstanceDefinition& WithInstanceType(GameServerGroupInstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
57
59
69 inline const Aws::String& GetWeightedCapacity() const{ return m_weightedCapacity; }
70 inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
71 inline void SetWeightedCapacity(const Aws::String& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = value; }
72 inline void SetWeightedCapacity(Aws::String&& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = std::move(value); }
73 inline void SetWeightedCapacity(const char* value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity.assign(value); }
74 inline InstanceDefinition& WithWeightedCapacity(const Aws::String& value) { SetWeightedCapacity(value); return *this;}
75 inline InstanceDefinition& WithWeightedCapacity(Aws::String&& value) { SetWeightedCapacity(std::move(value)); return *this;}
76 inline InstanceDefinition& WithWeightedCapacity(const char* value) { SetWeightedCapacity(value); return *this;}
78 private:
79
80 GameServerGroupInstanceType m_instanceType;
81 bool m_instanceTypeHasBeenSet = false;
82
83 Aws::String m_weightedCapacity;
84 bool m_weightedCapacityHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace GameLift
89} // namespace Aws
InstanceDefinition & WithWeightedCapacity(const Aws::String &value)
void SetWeightedCapacity(Aws::String &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API InstanceDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
const GameServerGroupInstanceType & GetInstanceType() const
InstanceDefinition & WithWeightedCapacity(const char *value)
void SetWeightedCapacity(const Aws::String &value)
AWS_GAMELIFT_API InstanceDefinition(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceType(const GameServerGroupInstanceType &value)
void SetInstanceType(GameServerGroupInstanceType &&value)
InstanceDefinition & WithInstanceType(GameServerGroupInstanceType &&value)
const Aws::String & GetWeightedCapacity() const
InstanceDefinition & WithInstanceType(const GameServerGroupInstanceType &value)
InstanceDefinition & WithWeightedCapacity(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue