AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CognitoUserPoolConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_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 AppSync {
20namespace Model {
21
29 public:
30 AWS_APPSYNC_API CognitoUserPoolConfig() = default;
33 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
40 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
41 template <typename UserPoolIdT = Aws::String>
42 void SetUserPoolId(UserPoolIdT&& value) {
43 m_userPoolIdHasBeenSet = true;
44 m_userPoolId = std::forward<UserPoolIdT>(value);
45 }
46 template <typename UserPoolIdT = Aws::String>
47 CognitoUserPoolConfig& WithUserPoolId(UserPoolIdT&& value) {
48 SetUserPoolId(std::forward<UserPoolIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
58 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
59 template <typename AwsRegionT = Aws::String>
60 void SetAwsRegion(AwsRegionT&& value) {
61 m_awsRegionHasBeenSet = true;
62 m_awsRegion = std::forward<AwsRegionT>(value);
63 }
64 template <typename AwsRegionT = Aws::String>
65 CognitoUserPoolConfig& WithAwsRegion(AwsRegionT&& value) {
66 SetAwsRegion(std::forward<AwsRegionT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetAppIdClientRegex() const { return m_appIdClientRegex; }
77 inline bool AppIdClientRegexHasBeenSet() const { return m_appIdClientRegexHasBeenSet; }
78 template <typename AppIdClientRegexT = Aws::String>
79 void SetAppIdClientRegex(AppIdClientRegexT&& value) {
80 m_appIdClientRegexHasBeenSet = true;
81 m_appIdClientRegex = std::forward<AppIdClientRegexT>(value);
82 }
83 template <typename AppIdClientRegexT = Aws::String>
84 CognitoUserPoolConfig& WithAppIdClientRegex(AppIdClientRegexT&& value) {
85 SetAppIdClientRegex(std::forward<AppIdClientRegexT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_userPoolId;
91
92 Aws::String m_awsRegion;
93
94 Aws::String m_appIdClientRegex;
95 bool m_userPoolIdHasBeenSet = false;
96 bool m_awsRegionHasBeenSet = false;
97 bool m_appIdClientRegexHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace AppSync
102} // namespace Aws
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPSYNC_API CognitoUserPoolConfig(Aws::Utils::Json::JsonView jsonValue)
CognitoUserPoolConfig & WithUserPoolId(UserPoolIdT &&value)
void SetAppIdClientRegex(AppIdClientRegexT &&value)
CognitoUserPoolConfig & WithAppIdClientRegex(AppIdClientRegexT &&value)
CognitoUserPoolConfig & WithAwsRegion(AwsRegionT &&value)
AWS_APPSYNC_API CognitoUserPoolConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API CognitoUserPoolConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue