public class SetRiskConfigurationRequest extends AmazonWebServiceRequest implements Serializable
Configures actions on detected risks. To delete the risk configuration for
UserPoolId
or ClientId
, pass null values for all
four configuration types.
To enable Amazon Cognito advanced security features, update the user pool to
include the UserPoolAddOns
keyAdvancedSecurityMode
.
See .
Constructor and Description |
---|
SetRiskConfigurationRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
AccountTakeoverRiskConfigurationType |
getAccountTakeoverRiskConfiguration()
The account takeover risk configuration.
|
String |
getClientId()
The app client ID.
|
CompromisedCredentialsRiskConfigurationType |
getCompromisedCredentialsRiskConfiguration()
The compromised credentials risk configuration.
|
RiskExceptionConfigurationType |
getRiskExceptionConfiguration()
The configuration to override the risk decision.
|
String |
getUserPoolId()
The user pool ID.
|
int |
hashCode() |
void |
setAccountTakeoverRiskConfiguration(AccountTakeoverRiskConfigurationType accountTakeoverRiskConfiguration)
The account takeover risk configuration.
|
void |
setClientId(String clientId)
The app client ID.
|
void |
setCompromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationType compromisedCredentialsRiskConfiguration)
The compromised credentials risk configuration.
|
void |
setRiskExceptionConfiguration(RiskExceptionConfigurationType riskExceptionConfiguration)
The configuration to override the risk decision.
|
void |
setUserPoolId(String userPoolId)
The user pool ID.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetRiskConfigurationRequest |
withAccountTakeoverRiskConfiguration(AccountTakeoverRiskConfigurationType accountTakeoverRiskConfiguration)
The account takeover risk configuration.
|
SetRiskConfigurationRequest |
withClientId(String clientId)
The app client ID.
|
SetRiskConfigurationRequest |
withCompromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationType compromisedCredentialsRiskConfiguration)
The compromised credentials risk configuration.
|
SetRiskConfigurationRequest |
withRiskExceptionConfiguration(RiskExceptionConfigurationType riskExceptionConfiguration)
The configuration to override the risk decision.
|
SetRiskConfigurationRequest |
withUserPoolId(String userPoolId)
The user pool ID.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getUserPoolId()
The user pool ID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID.
public void setUserPoolId(String userPoolId)
The user pool ID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId
- The user pool ID.
public SetRiskConfigurationRequest withUserPoolId(String userPoolId)
The user pool ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId
- The user pool ID.
public String getClientId()
The app client ID. If ClientId
is null, then the risk
configuration is mapped to userPoolId
. When the client ID is
null, the same risk configuration is applied to all the clients in the
userPool.
Otherwise, ClientId
is mapped to the client. When the client
ID is not null, the user pool configuration is overridden and the risk
configuration for the client is used instead.
Constraints:
Length: 1 - 128
Pattern: [\w+]+
The app client ID. If ClientId
is null, then the
risk configuration is mapped to userPoolId
. When the
client ID is null, the same risk configuration is applied to all
the clients in the userPool.
Otherwise, ClientId
is mapped to the client. When
the client ID is not null, the user pool configuration is
overridden and the risk configuration for the client is used
instead.
public void setClientId(String clientId)
The app client ID. If ClientId
is null, then the risk
configuration is mapped to userPoolId
. When the client ID is
null, the same risk configuration is applied to all the clients in the
userPool.
Otherwise, ClientId
is mapped to the client. When the client
ID is not null, the user pool configuration is overridden and the risk
configuration for the client is used instead.
Constraints:
Length: 1 - 128
Pattern: [\w+]+
clientId
-
The app client ID. If ClientId
is null, then the
risk configuration is mapped to userPoolId
. When
the client ID is null, the same risk configuration is applied
to all the clients in the userPool.
Otherwise, ClientId
is mapped to the client. When
the client ID is not null, the user pool configuration is
overridden and the risk configuration for the client is used
instead.
public SetRiskConfigurationRequest withClientId(String clientId)
The app client ID. If ClientId
is null, then the risk
configuration is mapped to userPoolId
. When the client ID is
null, the same risk configuration is applied to all the clients in the
userPool.
Otherwise, ClientId
is mapped to the client. When the client
ID is not null, the user pool configuration is overridden and the risk
configuration for the client is used instead.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+]+
clientId
-
The app client ID. If ClientId
is null, then the
risk configuration is mapped to userPoolId
. When
the client ID is null, the same risk configuration is applied
to all the clients in the userPool.
Otherwise, ClientId
is mapped to the client. When
the client ID is not null, the user pool configuration is
overridden and the risk configuration for the client is used
instead.
public CompromisedCredentialsRiskConfigurationType getCompromisedCredentialsRiskConfiguration()
The compromised credentials risk configuration.
The compromised credentials risk configuration.
public void setCompromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationType compromisedCredentialsRiskConfiguration)
The compromised credentials risk configuration.
compromisedCredentialsRiskConfiguration
- The compromised credentials risk configuration.
public SetRiskConfigurationRequest withCompromisedCredentialsRiskConfiguration(CompromisedCredentialsRiskConfigurationType compromisedCredentialsRiskConfiguration)
The compromised credentials risk configuration.
Returns a reference to this object so that method calls can be chained together.
compromisedCredentialsRiskConfiguration
- The compromised credentials risk configuration.
public AccountTakeoverRiskConfigurationType getAccountTakeoverRiskConfiguration()
The account takeover risk configuration.
The account takeover risk configuration.
public void setAccountTakeoverRiskConfiguration(AccountTakeoverRiskConfigurationType accountTakeoverRiskConfiguration)
The account takeover risk configuration.
accountTakeoverRiskConfiguration
- The account takeover risk configuration.
public SetRiskConfigurationRequest withAccountTakeoverRiskConfiguration(AccountTakeoverRiskConfigurationType accountTakeoverRiskConfiguration)
The account takeover risk configuration.
Returns a reference to this object so that method calls can be chained together.
accountTakeoverRiskConfiguration
- The account takeover risk configuration.
public RiskExceptionConfigurationType getRiskExceptionConfiguration()
The configuration to override the risk decision.
The configuration to override the risk decision.
public void setRiskExceptionConfiguration(RiskExceptionConfigurationType riskExceptionConfiguration)
The configuration to override the risk decision.
riskExceptionConfiguration
- The configuration to override the risk decision.
public SetRiskConfigurationRequest withRiskExceptionConfiguration(RiskExceptionConfigurationType riskExceptionConfiguration)
The configuration to override the risk decision.
Returns a reference to this object so that method calls can be chained together.
riskExceptionConfiguration
- The configuration to override the risk decision.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.