AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
61 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
62 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
63 inline CognitoOptions& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
64 inline CognitoOptions& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
65 inline CognitoOptions& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
67
69
72 inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
73 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
74 inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
75 inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
76 inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
77 inline CognitoOptions& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
78 inline CognitoOptions& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
79 inline CognitoOptions& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
81
83
87 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
88 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
89 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
90 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
91 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
92 inline CognitoOptions& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
93 inline CognitoOptions& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
94 inline CognitoOptions& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
96 private:
97
98 bool m_enabled;
99 bool m_enabledHasBeenSet = false;
100
101 Aws::String m_userPoolId;
102 bool m_userPoolIdHasBeenSet = false;
103
104 Aws::String m_identityPoolId;
105 bool m_identityPoolIdHasBeenSet = false;
106
107 Aws::String m_roleArn;
108 bool m_roleArnHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace ElasticsearchService
113} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
CognitoOptions & WithRoleArn(const char *value)
AWS_ELASTICSEARCHSERVICE_API CognitoOptions()
void SetIdentityPoolId(const Aws::String &value)
CognitoOptions & WithUserPoolId(const Aws::String &value)
CognitoOptions & WithUserPoolId(const char *value)
CognitoOptions & WithIdentityPoolId(const char *value)
AWS_ELASTICSEARCHSERVICE_API CognitoOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
CognitoOptions & WithIdentityPoolId(const Aws::String &value)
AWS_ELASTICSEARCHSERVICE_API CognitoOptions(Aws::Utils::Json::JsonView jsonValue)
CognitoOptions & WithRoleArn(Aws::String &&value)
void SetUserPoolId(const Aws::String &value)
CognitoOptions & WithIdentityPoolId(Aws::String &&value)
CognitoOptions & WithUserPoolId(Aws::String &&value)
CognitoOptions & WithRoleArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue