AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename UserPoolIdT = Aws::String>
63 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
64 template<typename UserPoolIdT = Aws::String>
65 CognitoOptions& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
67
69
73 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
74 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
75 template<typename IdentityPoolIdT = Aws::String>
76 void SetIdentityPoolId(IdentityPoolIdT&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::forward<IdentityPoolIdT>(value); }
77 template<typename IdentityPoolIdT = Aws::String>
78 CognitoOptions& WithIdentityPoolId(IdentityPoolIdT&& value) { SetIdentityPoolId(std::forward<IdentityPoolIdT>(value)); return *this;}
80
82
86 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
87 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
88 template<typename RoleArnT = Aws::String>
89 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
90 template<typename RoleArnT = Aws::String>
91 CognitoOptions& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
93 private:
94
95 bool m_enabled{false};
96 bool m_enabledHasBeenSet = false;
97
98 Aws::String m_userPoolId;
99 bool m_userPoolIdHasBeenSet = false;
100
101 Aws::String m_identityPoolId;
102 bool m_identityPoolIdHasBeenSet = false;
103
104 Aws::String m_roleArn;
105 bool m_roleArnHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace OpenSearchService
110} // 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