AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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