AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CognitoOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchService {
20namespace Model {
21
32 public:
33 AWS_OPENSEARCHSERVICE_API CognitoOptions() = default;
34 AWS_OPENSEARCHSERVICE_API CognitoOptions(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API CognitoOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline bool GetEnabled() const { return m_enabled; }
44 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
45 inline void SetEnabled(bool value) {
46 m_enabledHasBeenSet = true;
47 m_enabled = value;
48 }
49 inline CognitoOptions& WithEnabled(bool value) {
50 SetEnabled(value);
51 return *this;
52 }
54
56
60 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
61 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
62 template <typename UserPoolIdT = Aws::String>
63 void SetUserPoolId(UserPoolIdT&& value) {
64 m_userPoolIdHasBeenSet = true;
65 m_userPoolId = std::forward<UserPoolIdT>(value);
66 }
67 template <typename UserPoolIdT = Aws::String>
68 CognitoOptions& WithUserPoolId(UserPoolIdT&& value) {
69 SetUserPoolId(std::forward<UserPoolIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
80 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
81 template <typename IdentityPoolIdT = Aws::String>
82 void SetIdentityPoolId(IdentityPoolIdT&& value) {
83 m_identityPoolIdHasBeenSet = true;
84 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
85 }
86 template <typename IdentityPoolIdT = Aws::String>
87 CognitoOptions& WithIdentityPoolId(IdentityPoolIdT&& value) {
88 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
99 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
100 template <typename RoleArnT = Aws::String>
101 void SetRoleArn(RoleArnT&& value) {
102 m_roleArnHasBeenSet = true;
103 m_roleArn = std::forward<RoleArnT>(value);
104 }
105 template <typename RoleArnT = Aws::String>
106 CognitoOptions& WithRoleArn(RoleArnT&& value) {
107 SetRoleArn(std::forward<RoleArnT>(value));
108 return *this;
109 }
111 private:
112 bool m_enabled{false};
113
114 Aws::String m_userPoolId;
115
116 Aws::String m_identityPoolId;
117
118 Aws::String m_roleArn;
119 bool m_enabledHasBeenSet = false;
120 bool m_userPoolIdHasBeenSet = false;
121 bool m_identityPoolIdHasBeenSet = false;
122 bool m_roleArnHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace OpenSearchService
127} // namespace Aws
void SetIdentityPoolId(IdentityPoolIdT &&value)
CognitoOptions & WithUserPoolId(UserPoolIdT &&value)
const Aws::String & GetIdentityPoolId() const
AWS_OPENSEARCHSERVICE_API CognitoOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
CognitoOptions & WithIdentityPoolId(IdentityPoolIdT &&value)
AWS_OPENSEARCHSERVICE_API CognitoOptions()=default
AWS_OPENSEARCHSERVICE_API CognitoOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
CognitoOptions & WithRoleArn(RoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue