AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CognitoConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
31 public:
32 AWS_SAGEMAKER_API CognitoConfig() = default;
33 AWS_SAGEMAKER_API CognitoConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SAGEMAKER_API CognitoConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
46 inline const Aws::String& GetUserPool() const { return m_userPool; }
47 inline bool UserPoolHasBeenSet() const { return m_userPoolHasBeenSet; }
48 template <typename UserPoolT = Aws::String>
49 void SetUserPool(UserPoolT&& value) {
50 m_userPoolHasBeenSet = true;
51 m_userPool = std::forward<UserPoolT>(value);
52 }
53 template <typename UserPoolT = Aws::String>
54 CognitoConfig& WithUserPool(UserPoolT&& value) {
55 SetUserPool(std::forward<UserPoolT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetClientId() const { return m_clientId; }
65 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
66 template <typename ClientIdT = Aws::String>
67 void SetClientId(ClientIdT&& value) {
68 m_clientIdHasBeenSet = true;
69 m_clientId = std::forward<ClientIdT>(value);
70 }
71 template <typename ClientIdT = Aws::String>
72 CognitoConfig& WithClientId(ClientIdT&& value) {
73 SetClientId(std::forward<ClientIdT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_userPool;
79
80 Aws::String m_clientId;
81 bool m_userPoolHasBeenSet = false;
82 bool m_clientIdHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace SageMaker
87} // namespace Aws
const Aws::String & GetUserPool() const
CognitoConfig & WithClientId(ClientIdT &&value)
const Aws::String & GetClientId() const
void SetClientId(ClientIdT &&value)
AWS_SAGEMAKER_API CognitoConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API CognitoConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SAGEMAKER_API CognitoConfig()=default
CognitoConfig & WithUserPool(UserPoolT &&value)
void SetUserPool(UserPoolT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue