com.amazonaws.services.ssooidc.model.AuthorizationPendingException Maven / Gradle / Ivy
Show all versions of aws-java-sdk-ssooidc Show documentation
/*
* Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.amazonaws.services.ssooidc.model;
import javax.annotation.Generated;
/**
*
* Indicates that a request to authorize a client with an access user session token is pending.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AuthorizationPendingException extends com.amazonaws.services.ssooidc.model.AWSSSOOIDCException {
private static final long serialVersionUID = 1L;
/**
*
* Single error code. For this exception the value will be authorization_pending
.
*
*/
private String error;
/**
*
* Human-readable text providing additional information, used to assist the client developer in understanding the
* error that occurred.
*
*/
private String error_description;
/**
* Constructs a new AuthorizationPendingException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public AuthorizationPendingException(String message) {
super(message);
}
/**
*
* Single error code. For this exception the value will be authorization_pending
.
*
*
* @param error
* Single error code. For this exception the value will be authorization_pending
.
*/
@com.fasterxml.jackson.annotation.JsonProperty("error")
public void setError(String error) {
this.error = error;
}
/**
*
* Single error code. For this exception the value will be authorization_pending
.
*
*
* @return Single error code. For this exception the value will be authorization_pending
.
*/
@com.fasterxml.jackson.annotation.JsonProperty("error")
public String getError() {
return this.error;
}
/**
*
* Single error code. For this exception the value will be authorization_pending
.
*
*
* @param error
* Single error code. For this exception the value will be authorization_pending
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AuthorizationPendingException withError(String error) {
setError(error);
return this;
}
/**
*
* Human-readable text providing additional information, used to assist the client developer in understanding the
* error that occurred.
*
*
* @param error_description
* Human-readable text providing additional information, used to assist the client developer in understanding
* the error that occurred.
*/
@com.fasterxml.jackson.annotation.JsonProperty("error_description")
public void setError_description(String error_description) {
this.error_description = error_description;
}
/**
*
* Human-readable text providing additional information, used to assist the client developer in understanding the
* error that occurred.
*
*
* @return Human-readable text providing additional information, used to assist the client developer in
* understanding the error that occurred.
*/
@com.fasterxml.jackson.annotation.JsonProperty("error_description")
public String getError_description() {
return this.error_description;
}
/**
*
* Human-readable text providing additional information, used to assist the client developer in understanding the
* error that occurred.
*
*
* @param error_description
* Human-readable text providing additional information, used to assist the client developer in understanding
* the error that occurred.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AuthorizationPendingException withError_description(String error_description) {
setError_description(error_description);
return this;
}
}