AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UserPoolConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/DefaultAction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppSync {
21namespace Model {
22
30 public:
31 AWS_APPSYNC_API UserPoolConfig() = default;
32 AWS_APPSYNC_API UserPoolConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
41 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
42 template <typename UserPoolIdT = Aws::String>
43 void SetUserPoolId(UserPoolIdT&& value) {
44 m_userPoolIdHasBeenSet = true;
45 m_userPoolId = std::forward<UserPoolIdT>(value);
46 }
47 template <typename UserPoolIdT = Aws::String>
48 UserPoolConfig& WithUserPoolId(UserPoolIdT&& value) {
49 SetUserPoolId(std::forward<UserPoolIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
59 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
60 template <typename AwsRegionT = Aws::String>
61 void SetAwsRegion(AwsRegionT&& value) {
62 m_awsRegionHasBeenSet = true;
63 m_awsRegion = std::forward<AwsRegionT>(value);
64 }
65 template <typename AwsRegionT = Aws::String>
66 UserPoolConfig& WithAwsRegion(AwsRegionT&& value) {
67 SetAwsRegion(std::forward<AwsRegionT>(value));
68 return *this;
69 }
71
73
78 inline DefaultAction GetDefaultAction() const { return m_defaultAction; }
79 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
80 inline void SetDefaultAction(DefaultAction value) {
81 m_defaultActionHasBeenSet = true;
82 m_defaultAction = value;
83 }
85 SetDefaultAction(value);
86 return *this;
87 }
89
91
95 inline const Aws::String& GetAppIdClientRegex() const { return m_appIdClientRegex; }
96 inline bool AppIdClientRegexHasBeenSet() const { return m_appIdClientRegexHasBeenSet; }
97 template <typename AppIdClientRegexT = Aws::String>
98 void SetAppIdClientRegex(AppIdClientRegexT&& value) {
99 m_appIdClientRegexHasBeenSet = true;
100 m_appIdClientRegex = std::forward<AppIdClientRegexT>(value);
101 }
102 template <typename AppIdClientRegexT = Aws::String>
103 UserPoolConfig& WithAppIdClientRegex(AppIdClientRegexT&& value) {
104 SetAppIdClientRegex(std::forward<AppIdClientRegexT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_userPoolId;
110
111 Aws::String m_awsRegion;
112
113 DefaultAction m_defaultAction{DefaultAction::NOT_SET};
114
115 Aws::String m_appIdClientRegex;
116 bool m_userPoolIdHasBeenSet = false;
117 bool m_awsRegionHasBeenSet = false;
118 bool m_defaultActionHasBeenSet = false;
119 bool m_appIdClientRegexHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace AppSync
124} // namespace Aws
AWS_APPSYNC_API UserPoolConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPSYNC_API UserPoolConfig()=default
void SetAppIdClientRegex(AppIdClientRegexT &&value)
const Aws::String & GetAppIdClientRegex() const
UserPoolConfig & WithAwsRegion(AwsRegionT &&value)
void SetAwsRegion(AwsRegionT &&value)
const Aws::String & GetUserPoolId() const
AWS_APPSYNC_API UserPoolConfig(Aws::Utils::Json::JsonView jsonValue)
UserPoolConfig & WithUserPoolId(UserPoolIdT &&value)
UserPoolConfig & WithAppIdClientRegex(AppIdClientRegexT &&value)
UserPoolConfig & WithDefaultAction(DefaultAction value)
void SetDefaultAction(DefaultAction value)
DefaultAction GetDefaultAction() const
const Aws::String & GetAwsRegion() const
void SetUserPoolId(UserPoolIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue