AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
IamFederationConfigOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchServerless {
20namespace Model {
21
31 public:
32 AWS_OPENSEARCHSERVERLESS_API IamFederationConfigOptions() = default;
33 AWS_OPENSEARCHSERVERLESS_API IamFederationConfigOptions(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API IamFederationConfigOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetGroupAttribute() const { return m_groupAttribute; }
43 inline bool GroupAttributeHasBeenSet() const { return m_groupAttributeHasBeenSet; }
44 template <typename GroupAttributeT = Aws::String>
45 void SetGroupAttribute(GroupAttributeT&& value) {
46 m_groupAttributeHasBeenSet = true;
47 m_groupAttribute = std::forward<GroupAttributeT>(value);
48 }
49 template <typename GroupAttributeT = Aws::String>
51 SetGroupAttribute(std::forward<GroupAttributeT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetUserAttribute() const { return m_userAttribute; }
62 inline bool UserAttributeHasBeenSet() const { return m_userAttributeHasBeenSet; }
63 template <typename UserAttributeT = Aws::String>
64 void SetUserAttribute(UserAttributeT&& value) {
65 m_userAttributeHasBeenSet = true;
66 m_userAttribute = std::forward<UserAttributeT>(value);
67 }
68 template <typename UserAttributeT = Aws::String>
70 SetUserAttribute(std::forward<UserAttributeT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_groupAttribute;
76
77 Aws::String m_userAttribute;
78 bool m_groupAttributeHasBeenSet = false;
79 bool m_userAttributeHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace OpenSearchServerless
84} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API IamFederationConfigOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
IamFederationConfigOptions & WithGroupAttribute(GroupAttributeT &&value)
IamFederationConfigOptions & WithUserAttribute(UserAttributeT &&value)
AWS_OPENSEARCHSERVERLESS_API IamFederationConfigOptions()=default
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVERLESS_API IamFederationConfigOptions(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue