AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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
53 inline int GetAlwaysOnCapacity() const { return m_alwaysOnCapacity; }
54 inline bool AlwaysOnCapacityHasBeenSet() const { return m_alwaysOnCapacityHasBeenSet; }
55 inline void SetAlwaysOnCapacity(int value) { m_alwaysOnCapacityHasBeenSet = true; m_alwaysOnCapacity = value; }
56 inline LocationConfiguration& WithAlwaysOnCapacity(int value) { SetAlwaysOnCapacity(value); return *this;}
58
60
67 inline const Aws::String& GetLocationName() const { return m_locationName; }
68 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
69 template<typename LocationNameT = Aws::String>
70 void SetLocationName(LocationNameT&& value) { m_locationNameHasBeenSet = true; m_locationName = std::forward<LocationNameT>(value); }
71 template<typename LocationNameT = Aws::String>
72 LocationConfiguration& WithLocationName(LocationNameT&& value) { SetLocationName(std::forward<LocationNameT>(value)); return *this;}
74
76
82 inline int GetOnDemandCapacity() const { return m_onDemandCapacity; }
83 inline bool OnDemandCapacityHasBeenSet() const { return m_onDemandCapacityHasBeenSet; }
84 inline void SetOnDemandCapacity(int value) { m_onDemandCapacityHasBeenSet = true; m_onDemandCapacity = value; }
85 inline LocationConfiguration& WithOnDemandCapacity(int value) { SetOnDemandCapacity(value); return *this;}
87 private:
88
89 int m_alwaysOnCapacity{0};
90 bool m_alwaysOnCapacityHasBeenSet = false;
91
92 Aws::String m_locationName;
93 bool m_locationNameHasBeenSet = false;
94
95 int m_onDemandCapacity{0};
96 bool m_onDemandCapacityHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace GameLiftStreams
101} // 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