AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CognitoOptions.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_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 ElasticsearchService
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_ELASTICSEARCHSERVICE_API CognitoOptions() = default;
39 AWS_ELASTICSEARCHSERVICE_API CognitoOptions(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ELASTICSEARCHSERVICE_API CognitoOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline bool GetEnabled() const { return m_enabled; }
49 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
50 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
51 inline CognitoOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
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) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
62 template<typename UserPoolIdT = Aws::String>
63 CognitoOptions& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
71 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
72 template<typename IdentityPoolIdT = Aws::String>
73 void SetIdentityPoolId(IdentityPoolIdT&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::forward<IdentityPoolIdT>(value); }
74 template<typename IdentityPoolIdT = Aws::String>
75 CognitoOptions& WithIdentityPoolId(IdentityPoolIdT&& value) { SetIdentityPoolId(std::forward<IdentityPoolIdT>(value)); return *this;}
77
79
83 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
84 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
85 template<typename RoleArnT = Aws::String>
86 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
87 template<typename RoleArnT = Aws::String>
88 CognitoOptions& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
90 private:
91
92 bool m_enabled{false};
93 bool m_enabledHasBeenSet = false;
94
95 Aws::String m_userPoolId;
96 bool m_userPoolIdHasBeenSet = false;
97
98 Aws::String m_identityPoolId;
99 bool m_identityPoolIdHasBeenSet = false;
100
101 Aws::String m_roleArn;
102 bool m_roleArnHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace ElasticsearchService
107} // 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