AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
43 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline GameServerGroupInstanceType GetInstanceType() const { return m_instanceType; }
51 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
52 inline void SetInstanceType(GameServerGroupInstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
55
57
67 inline const Aws::String& GetWeightedCapacity() const { return m_weightedCapacity; }
68 inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
69 template<typename WeightedCapacityT = Aws::String>
70 void SetWeightedCapacity(WeightedCapacityT&& value) { m_weightedCapacityHasBeenSet = true; m_weightedCapacity = std::forward<WeightedCapacityT>(value); }
71 template<typename WeightedCapacityT = Aws::String>
72 InstanceDefinition& WithWeightedCapacity(WeightedCapacityT&& value) { SetWeightedCapacity(std::forward<WeightedCapacityT>(value)); return *this;}
74 private:
75
77 bool m_instanceTypeHasBeenSet = false;
78
79 Aws::String m_weightedCapacity;
80 bool m_weightedCapacityHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace GameLift
85} // namespace Aws
void SetWeightedCapacity(WeightedCapacityT &&value)
AWS_GAMELIFT_API InstanceDefinition()=default
void SetInstanceType(GameServerGroupInstanceType value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API InstanceDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceDefinition & WithWeightedCapacity(WeightedCapacityT &&value)
AWS_GAMELIFT_API InstanceDefinition(Aws::Utils::Json::JsonView jsonValue)
InstanceDefinition & WithInstanceType(GameServerGroupInstanceType value)
const Aws::String & GetWeightedCapacity() const
GameServerGroupInstanceType GetInstanceType() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue