AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
MemberIndex.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
31 public:
32 AWS_RESOURCEEXPLORER2_API MemberIndex() = default;
33 AWS_RESOURCEEXPLORER2_API MemberIndex(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESOURCEEXPLORER2_API MemberIndex& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
49 MemberIndex& WithAccountId(AccountIdT&& value) {
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetRegion() const { return m_region; }
60 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
61 template <typename RegionT = Aws::String>
62 void SetRegion(RegionT&& value) {
63 m_regionHasBeenSet = true;
64 m_region = std::forward<RegionT>(value);
65 }
66 template <typename RegionT = Aws::String>
67 MemberIndex& WithRegion(RegionT&& value) {
68 SetRegion(std::forward<RegionT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetArn() const { return m_arn; }
80 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
81 template <typename ArnT = Aws::String>
82 void SetArn(ArnT&& value) {
83 m_arnHasBeenSet = true;
84 m_arn = std::forward<ArnT>(value);
85 }
86 template <typename ArnT = Aws::String>
87 MemberIndex& WithArn(ArnT&& value) {
88 SetArn(std::forward<ArnT>(value));
89 return *this;
90 }
92
94
103 inline IndexType GetType() const { return m_type; }
104 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 inline void SetType(IndexType value) {
106 m_typeHasBeenSet = true;
107 m_type = value;
108 }
110 SetType(value);
111 return *this;
112 }
114 private:
115 Aws::String m_accountId;
116
117 Aws::String m_region;
118
119 Aws::String m_arn;
120
122 bool m_accountIdHasBeenSet = false;
123 bool m_regionHasBeenSet = false;
124 bool m_arnHasBeenSet = false;
125 bool m_typeHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace ResourceExplorer2
130} // namespace Aws
MemberIndex & WithArn(ArnT &&value)
Definition MemberIndex.h:87
MemberIndex & WithAccountId(AccountIdT &&value)
Definition MemberIndex.h:49
void SetAccountId(AccountIdT &&value)
Definition MemberIndex.h:44
AWS_RESOURCEEXPLORER2_API MemberIndex()=default
const Aws::String & GetAccountId() const
Definition MemberIndex.h:41
const Aws::String & GetArn() const
Definition MemberIndex.h:79
const Aws::String & GetRegion() const
Definition MemberIndex.h:59
AWS_RESOURCEEXPLORER2_API MemberIndex & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESOURCEEXPLORER2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESOURCEEXPLORER2_API MemberIndex(Aws::Utils::Json::JsonView jsonValue)
MemberIndex & WithType(IndexType value)
MemberIndex & WithRegion(RegionT &&value)
Definition MemberIndex.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue