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/opensearch/OpenSearchService_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 OpenSearchService
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_OPENSEARCHSERVICE_API CognitoOptions();
39 AWS_OPENSEARCHSERVICE_API CognitoOptions(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVICE_API CognitoOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline bool GetEnabled() const{ return m_enabled; }
50 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
51 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
52 inline CognitoOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
54
56
60 inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
61 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
62 inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
63 inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
64 inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
65 inline CognitoOptions& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
66 inline CognitoOptions& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
67 inline CognitoOptions& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
69
71
75 inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
76 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
77 inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
78 inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
79 inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
80 inline CognitoOptions& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
81 inline CognitoOptions& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
82 inline CognitoOptions& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
84
86
90 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
91 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
92 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
93 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
94 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
95 inline CognitoOptions& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
96 inline CognitoOptions& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
97 inline CognitoOptions& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
99 private:
100
101 bool m_enabled;
102 bool m_enabledHasBeenSet = false;
103
104 Aws::String m_userPoolId;
105 bool m_userPoolIdHasBeenSet = false;
106
107 Aws::String m_identityPoolId;
108 bool m_identityPoolIdHasBeenSet = false;
109
110 Aws::String m_roleArn;
111 bool m_roleArnHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace OpenSearchService
116} // namespace Aws
CognitoOptions & WithRoleArn(Aws::String &&value)
CognitoOptions & WithIdentityPoolId(Aws::String &&value)
CognitoOptions & WithIdentityPoolId(const Aws::String &value)
void SetRoleArn(const Aws::String &value)
void SetIdentityPoolId(const Aws::String &value)
const Aws::String & GetIdentityPoolId() const
CognitoOptions & WithUserPoolId(const Aws::String &value)
AWS_OPENSEARCHSERVICE_API CognitoOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
CognitoOptions & WithRoleArn(const char *value)
AWS_OPENSEARCHSERVICE_API CognitoOptions()
CognitoOptions & WithUserPoolId(const char *value)
AWS_OPENSEARCHSERVICE_API CognitoOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUserPoolId(const Aws::String &value)
CognitoOptions & WithUserPoolId(Aws::String &&value)
CognitoOptions & WithIdentityPoolId(const char *value)
CognitoOptions & WithRoleArn(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue