AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
CognitoConfig.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
28 public:
29 AWS_APPSYNC_API CognitoConfig() = default;
30 AWS_APPSYNC_API CognitoConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
39 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
40 template <typename UserPoolIdT = Aws::String>
41 void SetUserPoolId(UserPoolIdT&& value) {
42 m_userPoolIdHasBeenSet = true;
43 m_userPoolId = std::forward<UserPoolIdT>(value);
44 }
45 template <typename UserPoolIdT = Aws::String>
46 CognitoConfig& WithUserPoolId(UserPoolIdT&& value) {
47 SetUserPoolId(std::forward<UserPoolIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
57 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
58 template <typename AwsRegionT = Aws::String>
59 void SetAwsRegion(AwsRegionT&& value) {
60 m_awsRegionHasBeenSet = true;
61 m_awsRegion = std::forward<AwsRegionT>(value);
62 }
63 template <typename AwsRegionT = Aws::String>
64 CognitoConfig& WithAwsRegion(AwsRegionT&& value) {
65 SetAwsRegion(std::forward<AwsRegionT>(value));
66 return *this;
67 }
69
71
75 inline const Aws::String& GetAppIdClientRegex() const { return m_appIdClientRegex; }
76 inline bool AppIdClientRegexHasBeenSet() const { return m_appIdClientRegexHasBeenSet; }
77 template <typename AppIdClientRegexT = Aws::String>
78 void SetAppIdClientRegex(AppIdClientRegexT&& value) {
79 m_appIdClientRegexHasBeenSet = true;
80 m_appIdClientRegex = std::forward<AppIdClientRegexT>(value);
81 }
82 template <typename AppIdClientRegexT = Aws::String>
83 CognitoConfig& WithAppIdClientRegex(AppIdClientRegexT&& value) {
84 SetAppIdClientRegex(std::forward<AppIdClientRegexT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_userPoolId;
90
91 Aws::String m_awsRegion;
92
93 Aws::String m_appIdClientRegex;
94 bool m_userPoolIdHasBeenSet = false;
95 bool m_awsRegionHasBeenSet = false;
96 bool m_appIdClientRegexHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace AppSync
101} // namespace Aws
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAppIdClientRegex(AppIdClientRegexT &&value)
AWS_APPSYNC_API CognitoConfig()=default
void SetUserPoolId(UserPoolIdT &&value)
CognitoConfig & WithUserPoolId(UserPoolIdT &&value)
CognitoConfig & WithAwsRegion(AwsRegionT &&value)
CognitoConfig & WithAppIdClientRegex(AppIdClientRegexT &&value)
AWS_APPSYNC_API CognitoConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAwsRegion() const
void SetAwsRegion(AwsRegionT &&value)
const Aws::String & GetAppIdClientRegex() const
const Aws::String & GetUserPoolId() const
AWS_APPSYNC_API CognitoConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue