AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CognitoConfig.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace APIPortal {
20namespace Model {
21
29 public:
30 AWS_APIPORTAL_API CognitoConfig() = default;
31 AWS_APIPORTAL_API CognitoConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIPORTAL_API CognitoConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetUserPoolArn() const { return m_userPoolArn; }
40 inline bool UserPoolArnHasBeenSet() const { return m_userPoolArnHasBeenSet; }
41 template <typename UserPoolArnT = Aws::String>
42 void SetUserPoolArn(UserPoolArnT&& value) {
43 m_userPoolArnHasBeenSet = true;
44 m_userPoolArn = std::forward<UserPoolArnT>(value);
45 }
46 template <typename UserPoolArnT = Aws::String>
47 CognitoConfig& WithUserPoolArn(UserPoolArnT&& value) {
48 SetUserPoolArn(std::forward<UserPoolArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAppClientId() const { return m_appClientId; }
58 inline bool AppClientIdHasBeenSet() const { return m_appClientIdHasBeenSet; }
59 template <typename AppClientIdT = Aws::String>
60 void SetAppClientId(AppClientIdT&& value) {
61 m_appClientIdHasBeenSet = true;
62 m_appClientId = std::forward<AppClientIdT>(value);
63 }
64 template <typename AppClientIdT = Aws::String>
65 CognitoConfig& WithAppClientId(AppClientIdT&& value) {
66 SetAppClientId(std::forward<AppClientIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetUserPoolDomain() const { return m_userPoolDomain; }
76 inline bool UserPoolDomainHasBeenSet() const { return m_userPoolDomainHasBeenSet; }
77 template <typename UserPoolDomainT = Aws::String>
78 void SetUserPoolDomain(UserPoolDomainT&& value) {
79 m_userPoolDomainHasBeenSet = true;
80 m_userPoolDomain = std::forward<UserPoolDomainT>(value);
81 }
82 template <typename UserPoolDomainT = Aws::String>
83 CognitoConfig& WithUserPoolDomain(UserPoolDomainT&& value) {
84 SetUserPoolDomain(std::forward<UserPoolDomainT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
95 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
96 template <typename IdentityPoolIdT = Aws::String>
97 void SetIdentityPoolId(IdentityPoolIdT&& value) {
98 m_identityPoolIdHasBeenSet = true;
99 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
100 }
101 template <typename IdentityPoolIdT = Aws::String>
102 CognitoConfig& WithIdentityPoolId(IdentityPoolIdT&& value) {
103 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_userPoolArn;
109
110 Aws::String m_appClientId;
111
112 Aws::String m_userPoolDomain;
113
114 Aws::String m_identityPoolId;
115 bool m_userPoolArnHasBeenSet = false;
116 bool m_appClientIdHasBeenSet = false;
117 bool m_userPoolDomainHasBeenSet = false;
118 bool m_identityPoolIdHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace APIPortal
123} // namespace Aws
void SetIdentityPoolId(IdentityPoolIdT &&value)
const Aws::String & GetAppClientId() const
const Aws::String & GetUserPoolDomain() const
CognitoConfig & WithUserPoolDomain(UserPoolDomainT &&value)
AWS_APIPORTAL_API CognitoConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUserPoolDomain(UserPoolDomainT &&value)
void SetAppClientId(AppClientIdT &&value)
AWS_APIPORTAL_API CognitoConfig(Aws::Utils::Json::JsonView jsonValue)
CognitoConfig & WithAppClientId(AppClientIdT &&value)
AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUserPoolArn(UserPoolArnT &&value)
CognitoConfig & WithIdentityPoolId(IdentityPoolIdT &&value)
const Aws::String & GetUserPoolArn() const
const Aws::String & GetIdentityPoolId() const
CognitoConfig & WithUserPoolArn(UserPoolArnT &&value)
AWS_APIPORTAL_API CognitoConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue