AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
IamFederationConfigOptions.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchServerless
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_OPENSEARCHSERVERLESS_API IamFederationConfigOptions() = default;
38 AWS_OPENSEARCHSERVERLESS_API IamFederationConfigOptions(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API IamFederationConfigOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetGroupAttribute() const { return m_groupAttribute; }
49 inline bool GroupAttributeHasBeenSet() const { return m_groupAttributeHasBeenSet; }
50 template<typename GroupAttributeT = Aws::String>
51 void SetGroupAttribute(GroupAttributeT&& value) { m_groupAttributeHasBeenSet = true; m_groupAttribute = std::forward<GroupAttributeT>(value); }
52 template<typename GroupAttributeT = Aws::String>
53 IamFederationConfigOptions& WithGroupAttribute(GroupAttributeT&& value) { SetGroupAttribute(std::forward<GroupAttributeT>(value)); return *this;}
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) { m_userAttributeHasBeenSet = true; m_userAttribute = std::forward<UserAttributeT>(value); }
65 template<typename UserAttributeT = Aws::String>
66 IamFederationConfigOptions& WithUserAttribute(UserAttributeT&& value) { SetUserAttribute(std::forward<UserAttributeT>(value)); return *this;}
68 private:
69
70 Aws::String m_groupAttribute;
71 bool m_groupAttributeHasBeenSet = false;
72
73 Aws::String m_userAttribute;
74 bool m_userAttributeHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace OpenSearchServerless
79} // 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