AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
Index.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/IndexType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ResourceExplorer2 {
21namespace Model {
22
38class Index {
39 public:
40 AWS_RESOURCEEXPLORER2_API Index() = default;
41 AWS_RESOURCEEXPLORER2_API Index(Aws::Utils::Json::JsonView jsonValue);
42 AWS_RESOURCEEXPLORER2_API Index& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
46
49 inline const Aws::String& GetRegion() const { return m_region; }
50 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
51 template <typename RegionT = Aws::String>
52 void SetRegion(RegionT&& value) {
53 m_regionHasBeenSet = true;
54 m_region = std::forward<RegionT>(value);
55 }
56 template <typename RegionT = Aws::String>
57 Index& WithRegion(RegionT&& value) {
58 SetRegion(std::forward<RegionT>(value));
59 return *this;
60 }
62
64
69 inline const Aws::String& GetArn() const { return m_arn; }
70 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
71 template <typename ArnT = Aws::String>
72 void SetArn(ArnT&& value) {
73 m_arnHasBeenSet = true;
74 m_arn = std::forward<ArnT>(value);
75 }
76 template <typename ArnT = Aws::String>
77 Index& WithArn(ArnT&& value) {
78 SetArn(std::forward<ArnT>(value));
79 return *this;
80 }
82
84
93 inline IndexType GetType() const { return m_type; }
94 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
95 inline void SetType(IndexType value) {
96 m_typeHasBeenSet = true;
97 m_type = value;
98 }
99 inline Index& WithType(IndexType value) {
100 SetType(value);
101 return *this;
102 }
104 private:
105 Aws::String m_region;
106
107 Aws::String m_arn;
108
110 bool m_regionHasBeenSet = false;
111 bool m_arnHasBeenSet = false;
112 bool m_typeHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace ResourceExplorer2
117} // namespace Aws
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
Index & WithRegion(RegionT &&value)
Definition Index.h:57
AWS_RESOURCEEXPLORER2_API Index()=default
AWS_RESOURCEEXPLORER2_API Index(Aws::Utils::Json::JsonView jsonValue)
Index & WithArn(ArnT &&value)
Definition Index.h:77
void SetType(IndexType value)
Definition Index.h:95
Index & WithType(IndexType value)
Definition Index.h:99
void SetArn(ArnT &&value)
Definition Index.h:72
const Aws::String & GetArn() const
Definition Index.h:69
const Aws::String & GetRegion() const
Definition Index.h:49
void SetRegion(RegionT &&value)
Definition Index.h:52
AWS_RESOURCEEXPLORER2_API Index & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue