AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SamlConfigOptions.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
33 {
34 public:
35 AWS_OPENSEARCHSERVERLESS_API SamlConfigOptions() = default;
36 AWS_OPENSEARCHSERVERLESS_API SamlConfigOptions(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OPENSEARCHSERVERLESS_API SamlConfigOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetMetadata() const { return m_metadata; }
46 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
47 template<typename MetadataT = Aws::String>
48 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
49 template<typename MetadataT = Aws::String>
50 SamlConfigOptions& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
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) { m_userAttributeHasBeenSet = true; m_userAttribute = std::forward<UserAttributeT>(value); }
61 template<typename UserAttributeT = Aws::String>
62 SamlConfigOptions& WithUserAttribute(UserAttributeT&& value) { SetUserAttribute(std::forward<UserAttributeT>(value)); return *this;}
64
66
69 inline const Aws::String& GetGroupAttribute() const { return m_groupAttribute; }
70 inline bool GroupAttributeHasBeenSet() const { return m_groupAttributeHasBeenSet; }
71 template<typename GroupAttributeT = Aws::String>
72 void SetGroupAttribute(GroupAttributeT&& value) { m_groupAttributeHasBeenSet = true; m_groupAttribute = std::forward<GroupAttributeT>(value); }
73 template<typename GroupAttributeT = Aws::String>
74 SamlConfigOptions& WithGroupAttribute(GroupAttributeT&& value) { SetGroupAttribute(std::forward<GroupAttributeT>(value)); return *this;}
76
78
82 inline const Aws::String& GetOpenSearchServerlessEntityId() const { return m_openSearchServerlessEntityId; }
83 inline bool OpenSearchServerlessEntityIdHasBeenSet() const { return m_openSearchServerlessEntityIdHasBeenSet; }
84 template<typename OpenSearchServerlessEntityIdT = Aws::String>
85 void SetOpenSearchServerlessEntityId(OpenSearchServerlessEntityIdT&& value) { m_openSearchServerlessEntityIdHasBeenSet = true; m_openSearchServerlessEntityId = std::forward<OpenSearchServerlessEntityIdT>(value); }
86 template<typename OpenSearchServerlessEntityIdT = Aws::String>
87 SamlConfigOptions& WithOpenSearchServerlessEntityId(OpenSearchServerlessEntityIdT&& value) { SetOpenSearchServerlessEntityId(std::forward<OpenSearchServerlessEntityIdT>(value)); return *this;}
89
91
94 inline int GetSessionTimeout() const { return m_sessionTimeout; }
95 inline bool SessionTimeoutHasBeenSet() const { return m_sessionTimeoutHasBeenSet; }
96 inline void SetSessionTimeout(int value) { m_sessionTimeoutHasBeenSet = true; m_sessionTimeout = value; }
97 inline SamlConfigOptions& WithSessionTimeout(int value) { SetSessionTimeout(value); return *this;}
99 private:
100
101 Aws::String m_metadata;
102 bool m_metadataHasBeenSet = false;
103
104 Aws::String m_userAttribute;
105 bool m_userAttributeHasBeenSet = false;
106
107 Aws::String m_groupAttribute;
108 bool m_groupAttributeHasBeenSet = false;
109
110 Aws::String m_openSearchServerlessEntityId;
111 bool m_openSearchServerlessEntityIdHasBeenSet = false;
112
113 int m_sessionTimeout{0};
114 bool m_sessionTimeoutHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace OpenSearchServerless
119} // 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