AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
LocationConfiguration.h
1
6#pragma once
7#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GameLiftStreams
22{
23namespace Model
24{
25
39 {
40 public:
41 AWS_GAMELIFTSTREAMS_API LocationConfiguration() = default;
42 AWS_GAMELIFTSTREAMS_API LocationConfiguration(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GAMELIFTSTREAMS_API LocationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
55 inline const Aws::String& GetLocationName() const { return m_locationName; }
56 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
57 template<typename LocationNameT = Aws::String>
58 void SetLocationName(LocationNameT&& value) { m_locationNameHasBeenSet = true; m_locationName = std::forward<LocationNameT>(value); }
59 template<typename LocationNameT = Aws::String>
60 LocationConfiguration& WithLocationName(LocationNameT&& value) { SetLocationName(std::forward<LocationNameT>(value)); return *this;}
62
64
70 inline int GetAlwaysOnCapacity() const { return m_alwaysOnCapacity; }
71 inline bool AlwaysOnCapacityHasBeenSet() const { return m_alwaysOnCapacityHasBeenSet; }
72 inline void SetAlwaysOnCapacity(int value) { m_alwaysOnCapacityHasBeenSet = true; m_alwaysOnCapacity = value; }
73 inline LocationConfiguration& WithAlwaysOnCapacity(int value) { SetAlwaysOnCapacity(value); return *this;}
75
77
84 inline int GetOnDemandCapacity() const { return m_onDemandCapacity; }
85 inline bool OnDemandCapacityHasBeenSet() const { return m_onDemandCapacityHasBeenSet; }
86 inline void SetOnDemandCapacity(int value) { m_onDemandCapacityHasBeenSet = true; m_onDemandCapacity = value; }
87 inline LocationConfiguration& WithOnDemandCapacity(int value) { SetOnDemandCapacity(value); return *this;}
89 private:
90
91 Aws::String m_locationName;
92 bool m_locationNameHasBeenSet = false;
93
94 int m_alwaysOnCapacity{0};
95 bool m_alwaysOnCapacityHasBeenSet = false;
96
97 int m_onDemandCapacity{0};
98 bool m_onDemandCapacityHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace GameLiftStreams
103} // namespace Aws
AWS_GAMELIFTSTREAMS_API LocationConfiguration(Aws::Utils::Json::JsonView jsonValue)
LocationConfiguration & WithOnDemandCapacity(int value)
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
AWS_GAMELIFTSTREAMS_API LocationConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue