AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ReplicationStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
9#include <aws/gameliftstreams/model/ReplicationStatusType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLiftStreams {
21namespace Model {
22
31 public:
32 AWS_GAMELIFTSTREAMS_API ReplicationStatus() = default;
33 AWS_GAMELIFTSTREAMS_API ReplicationStatus(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GAMELIFTSTREAMS_API ReplicationStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
45 inline const Aws::String& GetLocation() const { return m_location; }
46 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
47 template <typename LocationT = Aws::String>
48 void SetLocation(LocationT&& value) {
49 m_locationHasBeenSet = true;
50 m_location = std::forward<LocationT>(value);
51 }
52 template <typename LocationT = Aws::String>
53 ReplicationStatus& WithLocation(LocationT&& value) {
54 SetLocation(std::forward<LocationT>(value));
55 return *this;
56 }
58
60
63 inline ReplicationStatusType GetStatus() const { return m_status; }
64 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
65 inline void SetStatus(ReplicationStatusType value) {
66 m_statusHasBeenSet = true;
67 m_status = value;
68 }
70 SetStatus(value);
71 return *this;
72 }
74 private:
75 Aws::String m_location;
76
78 bool m_locationHasBeenSet = false;
79 bool m_statusHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace GameLiftStreams
84} // namespace Aws
AWS_GAMELIFTSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFTSTREAMS_API ReplicationStatus(Aws::Utils::Json::JsonView jsonValue)
ReplicationStatus & WithStatus(ReplicationStatusType value)
ReplicationStatus & WithLocation(LocationT &&value)
AWS_GAMELIFTSTREAMS_API ReplicationStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFTSTREAMS_API ReplicationStatus()=default
void SetStatus(ReplicationStatusType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue