AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
InstanceDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/GameServerGroupInstanceType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
33 public:
34 AWS_GAMELIFT_API InstanceDefinition() = default;
37 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline GameServerGroupInstanceType GetInstanceType() const { return m_instanceType; }
44 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
46 m_instanceTypeHasBeenSet = true;
47 m_instanceType = value;
48 }
50 SetInstanceType(value);
51 return *this;
52 }
54
56
66 inline const Aws::String& GetWeightedCapacity() const { return m_weightedCapacity; }
67 inline bool WeightedCapacityHasBeenSet() const { return m_weightedCapacityHasBeenSet; }
68 template <typename WeightedCapacityT = Aws::String>
69 void SetWeightedCapacity(WeightedCapacityT&& value) {
70 m_weightedCapacityHasBeenSet = true;
71 m_weightedCapacity = std::forward<WeightedCapacityT>(value);
72 }
73 template <typename WeightedCapacityT = Aws::String>
74 InstanceDefinition& WithWeightedCapacity(WeightedCapacityT&& value) {
75 SetWeightedCapacity(std::forward<WeightedCapacityT>(value));
76 return *this;
77 }
79 private:
81
82 Aws::String m_weightedCapacity;
83 bool m_instanceTypeHasBeenSet = false;
84 bool m_weightedCapacityHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace GameLift
89} // 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