AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
RegionStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
9#include <aws/resource-explorer-2/model/IndexStatus.h>
10#include <aws/resource-explorer-2/model/ViewStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ResourceExplorer2 {
22namespace Model {
23
31 public:
32 AWS_RESOURCEEXPLORER2_API RegionStatus() = default;
33 AWS_RESOURCEEXPLORER2_API RegionStatus(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESOURCEEXPLORER2_API RegionStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetRegion() const { return m_region; }
42 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
43 template <typename RegionT = Aws::String>
44 void SetRegion(RegionT&& value) {
45 m_regionHasBeenSet = true;
46 m_region = std::forward<RegionT>(value);
47 }
48 template <typename RegionT = Aws::String>
49 RegionStatus& WithRegion(RegionT&& value) {
50 SetRegion(std::forward<RegionT>(value));
51 return *this;
52 }
54
56
59 inline const IndexStatus& GetIndex() const { return m_index; }
60 inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; }
61 template <typename IndexT = IndexStatus>
62 void SetIndex(IndexT&& value) {
63 m_indexHasBeenSet = true;
64 m_index = std::forward<IndexT>(value);
65 }
66 template <typename IndexT = IndexStatus>
67 RegionStatus& WithIndex(IndexT&& value) {
68 SetIndex(std::forward<IndexT>(value));
69 return *this;
70 }
72
74
77 inline const ViewStatus& GetView() const { return m_view; }
78 inline bool ViewHasBeenSet() const { return m_viewHasBeenSet; }
79 template <typename ViewT = ViewStatus>
80 void SetView(ViewT&& value) {
81 m_viewHasBeenSet = true;
82 m_view = std::forward<ViewT>(value);
83 }
84 template <typename ViewT = ViewStatus>
85 RegionStatus& WithView(ViewT&& value) {
86 SetView(std::forward<ViewT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_region;
92
93 IndexStatus m_index;
94
95 ViewStatus m_view;
96 bool m_regionHasBeenSet = false;
97 bool m_indexHasBeenSet = false;
98 bool m_viewHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace ResourceExplorer2
103} // namespace Aws
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
RegionStatus & WithView(ViewT &&value)
RegionStatus & WithRegion(RegionT &&value)
const IndexStatus & GetIndex() const
AWS_RESOURCEEXPLORER2_API RegionStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESOURCEEXPLORER2_API RegionStatus(Aws::Utils::Json::JsonView jsonValue)
RegionStatus & WithIndex(IndexT &&value)
AWS_RESOURCEEXPLORER2_API RegionStatus()=default
const Aws::String & GetRegion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue