AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UserPoolConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appsync/model/DefaultAction.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppSync
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPSYNC_API UserPoolConfig() = default;
37 AWS_APPSYNC_API UserPoolConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
47 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
48 template<typename UserPoolIdT = Aws::String>
49 void SetUserPoolId(UserPoolIdT&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::forward<UserPoolIdT>(value); }
50 template<typename UserPoolIdT = Aws::String>
51 UserPoolConfig& WithUserPoolId(UserPoolIdT&& value) { SetUserPoolId(std::forward<UserPoolIdT>(value)); return *this;}
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) { m_awsRegionHasBeenSet = true; m_awsRegion = std::forward<AwsRegionT>(value); }
62 template<typename AwsRegionT = Aws::String>
63 UserPoolConfig& WithAwsRegion(AwsRegionT&& value) { SetAwsRegion(std::forward<AwsRegionT>(value)); return *this;}
65
67
72 inline DefaultAction GetDefaultAction() const { return m_defaultAction; }
73 inline bool DefaultActionHasBeenSet() const { return m_defaultActionHasBeenSet; }
74 inline void SetDefaultAction(DefaultAction value) { m_defaultActionHasBeenSet = true; m_defaultAction = value; }
75 inline UserPoolConfig& WithDefaultAction(DefaultAction value) { SetDefaultAction(value); return *this;}
77
79
83 inline const Aws::String& GetAppIdClientRegex() const { return m_appIdClientRegex; }
84 inline bool AppIdClientRegexHasBeenSet() const { return m_appIdClientRegexHasBeenSet; }
85 template<typename AppIdClientRegexT = Aws::String>
86 void SetAppIdClientRegex(AppIdClientRegexT&& value) { m_appIdClientRegexHasBeenSet = true; m_appIdClientRegex = std::forward<AppIdClientRegexT>(value); }
87 template<typename AppIdClientRegexT = Aws::String>
88 UserPoolConfig& WithAppIdClientRegex(AppIdClientRegexT&& value) { SetAppIdClientRegex(std::forward<AppIdClientRegexT>(value)); return *this;}
90 private:
91
92 Aws::String m_userPoolId;
93 bool m_userPoolIdHasBeenSet = false;
94
95 Aws::String m_awsRegion;
96 bool m_awsRegionHasBeenSet = false;
97
99 bool m_defaultActionHasBeenSet = false;
100
101 Aws::String m_appIdClientRegex;
102 bool m_appIdClientRegexHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace AppSync
107} // 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