AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
SetRiskConfigurationRequest.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProviderRequest.h>
8#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
9#include <aws/cognito-idp/model/AccountTakeoverRiskConfigurationType.h>
10#include <aws/cognito-idp/model/CompromisedCredentialsRiskConfigurationType.h>
11#include <aws/cognito-idp/model/RiskExceptionConfigurationType.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CognitoIdentityProvider {
18namespace Model {
19
23 public:
24 AWS_COGNITOIDENTITYPROVIDER_API SetRiskConfigurationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "SetRiskConfiguration"; }
31
32 AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override;
33
34 AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
45 inline const Aws::String& GetUserPoolId() const { return m_userPoolId; }
46 inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
47 template <typename UserPoolIdT = Aws::String>
48 void SetUserPoolId(UserPoolIdT&& value) {
49 m_userPoolIdHasBeenSet = true;
50 m_userPoolId = std::forward<UserPoolIdT>(value);
51 }
52 template <typename UserPoolIdT = Aws::String>
54 SetUserPoolId(std::forward<UserPoolIdT>(value));
55 return *this;
56 }
58
60
70 inline const Aws::String& GetClientId() const { return m_clientId; }
71 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
72 template <typename ClientIdT = Aws::String>
73 void SetClientId(ClientIdT&& value) {
74 m_clientIdHasBeenSet = true;
75 m_clientId = std::forward<ClientIdT>(value);
76 }
77 template <typename ClientIdT = Aws::String>
79 SetClientId(std::forward<ClientIdT>(value));
80 return *this;
81 }
83
85
91 return m_compromisedCredentialsRiskConfiguration;
92 }
93 inline bool CompromisedCredentialsRiskConfigurationHasBeenSet() const { return m_compromisedCredentialsRiskConfigurationHasBeenSet; }
94 template <typename CompromisedCredentialsRiskConfigurationT = CompromisedCredentialsRiskConfigurationType>
95 void SetCompromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationT&& value) {
96 m_compromisedCredentialsRiskConfigurationHasBeenSet = true;
97 m_compromisedCredentialsRiskConfiguration = std::forward<CompromisedCredentialsRiskConfigurationT>(value);
98 }
99 template <typename CompromisedCredentialsRiskConfigurationT = CompromisedCredentialsRiskConfigurationType>
100 SetRiskConfigurationRequest& WithCompromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationT&& value) {
101 SetCompromisedCredentialsRiskConfiguration(std::forward<CompromisedCredentialsRiskConfigurationT>(value));
102 return *this;
103 }
105
107
112 return m_accountTakeoverRiskConfiguration;
113 }
114 inline bool AccountTakeoverRiskConfigurationHasBeenSet() const { return m_accountTakeoverRiskConfigurationHasBeenSet; }
115 template <typename AccountTakeoverRiskConfigurationT = AccountTakeoverRiskConfigurationType>
116 void SetAccountTakeoverRiskConfiguration(AccountTakeoverRiskConfigurationT&& value) {
117 m_accountTakeoverRiskConfigurationHasBeenSet = true;
118 m_accountTakeoverRiskConfiguration = std::forward<AccountTakeoverRiskConfigurationT>(value);
119 }
120 template <typename AccountTakeoverRiskConfigurationT = AccountTakeoverRiskConfigurationType>
121 SetRiskConfigurationRequest& WithAccountTakeoverRiskConfiguration(AccountTakeoverRiskConfigurationT&& value) {
122 SetAccountTakeoverRiskConfiguration(std::forward<AccountTakeoverRiskConfigurationT>(value));
123 return *this;
124 }
126
128
132 inline const RiskExceptionConfigurationType& GetRiskExceptionConfiguration() const { return m_riskExceptionConfiguration; }
133 inline bool RiskExceptionConfigurationHasBeenSet() const { return m_riskExceptionConfigurationHasBeenSet; }
134 template <typename RiskExceptionConfigurationT = RiskExceptionConfigurationType>
135 void SetRiskExceptionConfiguration(RiskExceptionConfigurationT&& value) {
136 m_riskExceptionConfigurationHasBeenSet = true;
137 m_riskExceptionConfiguration = std::forward<RiskExceptionConfigurationT>(value);
138 }
139 template <typename RiskExceptionConfigurationT = RiskExceptionConfigurationType>
140 SetRiskConfigurationRequest& WithRiskExceptionConfiguration(RiskExceptionConfigurationT&& value) {
141 SetRiskExceptionConfiguration(std::forward<RiskExceptionConfigurationT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_userPoolId;
147
148 Aws::String m_clientId;
149
150 CompromisedCredentialsRiskConfigurationType m_compromisedCredentialsRiskConfiguration;
151
152 AccountTakeoverRiskConfigurationType m_accountTakeoverRiskConfiguration;
153
154 RiskExceptionConfigurationType m_riskExceptionConfiguration;
155 bool m_userPoolIdHasBeenSet = false;
156 bool m_clientIdHasBeenSet = false;
157 bool m_compromisedCredentialsRiskConfigurationHasBeenSet = false;
158 bool m_accountTakeoverRiskConfigurationHasBeenSet = false;
159 bool m_riskExceptionConfigurationHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace CognitoIdentityProvider
164} // namespace Aws
const AccountTakeoverRiskConfigurationType & GetAccountTakeoverRiskConfiguration() const
SetRiskConfigurationRequest & WithCompromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::String SerializePayload() const override
const CompromisedCredentialsRiskConfigurationType & GetCompromisedCredentialsRiskConfiguration() const
AWS_COGNITOIDENTITYPROVIDER_API SetRiskConfigurationRequest()=default
const RiskExceptionConfigurationType & GetRiskExceptionConfiguration() const
SetRiskConfigurationRequest & WithRiskExceptionConfiguration(RiskExceptionConfigurationT &&value)
AWS_COGNITOIDENTITYPROVIDER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SetRiskConfigurationRequest & WithUserPoolId(UserPoolIdT &&value)
void SetAccountTakeoverRiskConfiguration(AccountTakeoverRiskConfigurationT &&value)
void SetCompromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationT &&value)
SetRiskConfigurationRequest & WithAccountTakeoverRiskConfiguration(AccountTakeoverRiskConfigurationT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String