AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SamlConfigOptions.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
29 public:
30 AWS_OPENSEARCHSERVERLESS_API SamlConfigOptions() = default;
31 AWS_OPENSEARCHSERVERLESS_API SamlConfigOptions(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVERLESS_API SamlConfigOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetMetadata() const { return m_metadata; }
40 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
41 template <typename MetadataT = Aws::String>
42 void SetMetadata(MetadataT&& value) {
43 m_metadataHasBeenSet = true;
44 m_metadata = std::forward<MetadataT>(value);
45 }
46 template <typename MetadataT = Aws::String>
47 SamlConfigOptions& WithMetadata(MetadataT&& value) {
48 SetMetadata(std::forward<MetadataT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetUserAttribute() const { return m_userAttribute; }
58 inline bool UserAttributeHasBeenSet() const { return m_userAttributeHasBeenSet; }
59 template <typename UserAttributeT = Aws::String>
60 void SetUserAttribute(UserAttributeT&& value) {
61 m_userAttributeHasBeenSet = true;
62 m_userAttribute = std::forward<UserAttributeT>(value);
63 }
64 template <typename UserAttributeT = Aws::String>
65 SamlConfigOptions& WithUserAttribute(UserAttributeT&& value) {
66 SetUserAttribute(std::forward<UserAttributeT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetGroupAttribute() const { return m_groupAttribute; }
76 inline bool GroupAttributeHasBeenSet() const { return m_groupAttributeHasBeenSet; }
77 template <typename GroupAttributeT = Aws::String>
78 void SetGroupAttribute(GroupAttributeT&& value) {
79 m_groupAttributeHasBeenSet = true;
80 m_groupAttribute = std::forward<GroupAttributeT>(value);
81 }
82 template <typename GroupAttributeT = Aws::String>
83 SamlConfigOptions& WithGroupAttribute(GroupAttributeT&& value) {
84 SetGroupAttribute(std::forward<GroupAttributeT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetOpenSearchServerlessEntityId() const { return m_openSearchServerlessEntityId; }
95 inline bool OpenSearchServerlessEntityIdHasBeenSet() const { return m_openSearchServerlessEntityIdHasBeenSet; }
96 template <typename OpenSearchServerlessEntityIdT = Aws::String>
97 void SetOpenSearchServerlessEntityId(OpenSearchServerlessEntityIdT&& value) {
98 m_openSearchServerlessEntityIdHasBeenSet = true;
99 m_openSearchServerlessEntityId = std::forward<OpenSearchServerlessEntityIdT>(value);
100 }
101 template <typename OpenSearchServerlessEntityIdT = Aws::String>
102 SamlConfigOptions& WithOpenSearchServerlessEntityId(OpenSearchServerlessEntityIdT&& value) {
103 SetOpenSearchServerlessEntityId(std::forward<OpenSearchServerlessEntityIdT>(value));
104 return *this;
105 }
107
109
112 inline int GetSessionTimeout() const { return m_sessionTimeout; }
113 inline bool SessionTimeoutHasBeenSet() const { return m_sessionTimeoutHasBeenSet; }
114 inline void SetSessionTimeout(int value) {
115 m_sessionTimeoutHasBeenSet = true;
116 m_sessionTimeout = value;
117 }
119 SetSessionTimeout(value);
120 return *this;
121 }
123 private:
124 Aws::String m_metadata;
125
126 Aws::String m_userAttribute;
127
128 Aws::String m_groupAttribute;
129
130 Aws::String m_openSearchServerlessEntityId;
131
132 int m_sessionTimeout{0};
133 bool m_metadataHasBeenSet = false;
134 bool m_userAttributeHasBeenSet = false;
135 bool m_groupAttributeHasBeenSet = false;
136 bool m_openSearchServerlessEntityIdHasBeenSet = false;
137 bool m_sessionTimeoutHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace OpenSearchServerless
142} // namespace Aws
SamlConfigOptions & WithOpenSearchServerlessEntityId(OpenSearchServerlessEntityIdT &&value)
void SetOpenSearchServerlessEntityId(OpenSearchServerlessEntityIdT &&value)
AWS_OPENSEARCHSERVERLESS_API SamlConfigOptions()=default
SamlConfigOptions & WithGroupAttribute(GroupAttributeT &&value)
AWS_OPENSEARCHSERVERLESS_API SamlConfigOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
SamlConfigOptions & WithMetadata(MetadataT &&value)
SamlConfigOptions & WithUserAttribute(UserAttributeT &&value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVERLESS_API SamlConfigOptions(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue