AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LocationConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GameLiftStreams {
20namespace Model {
21
35 public:
36 AWS_GAMELIFTSTREAMS_API LocationConfiguration() = default;
37 AWS_GAMELIFTSTREAMS_API LocationConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GAMELIFTSTREAMS_API LocationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
49 inline const Aws::String& GetLocationName() const { return m_locationName; }
50 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
51 template <typename LocationNameT = Aws::String>
52 void SetLocationName(LocationNameT&& value) {
53 m_locationNameHasBeenSet = true;
54 m_locationName = std::forward<LocationNameT>(value);
55 }
56 template <typename LocationNameT = Aws::String>
57 LocationConfiguration& WithLocationName(LocationNameT&& value) {
58 SetLocationName(std::forward<LocationNameT>(value));
59 return *this;
60 }
62
64
69 inline int GetAlwaysOnCapacity() const { return m_alwaysOnCapacity; }
70 inline bool AlwaysOnCapacityHasBeenSet() const { return m_alwaysOnCapacityHasBeenSet; }
71 inline void SetAlwaysOnCapacity(int value) {
72 m_alwaysOnCapacityHasBeenSet = true;
73 m_alwaysOnCapacity = value;
74 }
77 return *this;
78 }
80
82
88 inline int GetTargetIdleCapacity() const { return m_targetIdleCapacity; }
89 inline bool TargetIdleCapacityHasBeenSet() const { return m_targetIdleCapacityHasBeenSet; }
90 inline void SetTargetIdleCapacity(int value) {
91 m_targetIdleCapacityHasBeenSet = true;
92 m_targetIdleCapacity = value;
93 }
96 return *this;
97 }
99
101
107 inline int GetMaximumCapacity() const { return m_maximumCapacity; }
108 inline bool MaximumCapacityHasBeenSet() const { return m_maximumCapacityHasBeenSet; }
109 inline void SetMaximumCapacity(int value) {
110 m_maximumCapacityHasBeenSet = true;
111 m_maximumCapacity = value;
112 }
114 SetMaximumCapacity(value);
115 return *this;
116 }
118 private:
119 Aws::String m_locationName;
120
121 int m_alwaysOnCapacity{0};
122
123 int m_targetIdleCapacity{0};
124
125 int m_maximumCapacity{0};
126 bool m_locationNameHasBeenSet = false;
127 bool m_alwaysOnCapacityHasBeenSet = false;
128 bool m_targetIdleCapacityHasBeenSet = false;
129 bool m_maximumCapacityHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace GameLiftStreams
134} // namespace Aws
AWS_GAMELIFTSTREAMS_API LocationConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFTSTREAMS_API LocationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LocationConfiguration & WithAlwaysOnCapacity(int value)
LocationConfiguration & WithLocationName(LocationNameT &&value)
AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
LocationConfiguration & WithTargetIdleCapacity(int value)
AWS_GAMELIFTSTREAMS_API LocationConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue