com.amazonaws.services.ssooidc.model.InvalidRequestRegionException 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 token provided as input to the request was issued by and is only usable by calling IAM Identity
* Center endpoints in another region.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class InvalidRequestRegionException extends com.amazonaws.services.ssooidc.model.AWSSSOOIDCException {
private static final long serialVersionUID = 1L;
/**
*
* Single error code. For this exception the value will be invalid_request
.
*
*/
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;
/**
*
* Indicates the IAM Identity Center endpoint which the requester may call with this token.
*
*/
private String endpoint;
/**
*
* Indicates the region which the requester may call with this token.
*
*/
private String region;
/**
* Constructs a new InvalidRequestRegionException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public InvalidRequestRegionException(String message) {
super(message);
}
/**
*
* Single error code. For this exception the value will be invalid_request
.
*
*
* @param error
* Single error code. For this exception the value will be invalid_request
.
*/
@com.fasterxml.jackson.annotation.JsonProperty("error")
public void setError(String error) {
this.error = error;
}
/**
*
* Single error code. For this exception the value will be invalid_request
.
*
*
* @return Single error code. For this exception the value will be invalid_request
.
*/
@com.fasterxml.jackson.annotation.JsonProperty("error")
public String getError() {
return this.error;
}
/**
*
* Single error code. For this exception the value will be invalid_request
.
*
*
* @param error
* Single error code. For this exception the value will be invalid_request
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InvalidRequestRegionException 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 InvalidRequestRegionException withError_description(String error_description) {
setError_description(error_description);
return this;
}
/**
*
* Indicates the IAM Identity Center endpoint which the requester may call with this token.
*
*
* @param endpoint
* Indicates the IAM Identity Center endpoint which the requester may call with this token.
*/
@com.fasterxml.jackson.annotation.JsonProperty("endpoint")
public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}
/**
*
* Indicates the IAM Identity Center endpoint which the requester may call with this token.
*
*
* @return Indicates the IAM Identity Center endpoint which the requester may call with this token.
*/
@com.fasterxml.jackson.annotation.JsonProperty("endpoint")
public String getEndpoint() {
return this.endpoint;
}
/**
*
* Indicates the IAM Identity Center endpoint which the requester may call with this token.
*
*
* @param endpoint
* Indicates the IAM Identity Center endpoint which the requester may call with this token.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InvalidRequestRegionException withEndpoint(String endpoint) {
setEndpoint(endpoint);
return this;
}
/**
*
* Indicates the region which the requester may call with this token.
*
*
* @param region
* Indicates the region which the requester may call with this token.
*/
@com.fasterxml.jackson.annotation.JsonProperty("region")
public void setRegion(String region) {
this.region = region;
}
/**
*
* Indicates the region which the requester may call with this token.
*
*
* @return Indicates the region which the requester may call with this token.
*/
@com.fasterxml.jackson.annotation.JsonProperty("region")
public String getRegion() {
return this.region;
}
/**
*
* Indicates the region which the requester may call with this token.
*
*
* @param region
* Indicates the region which the requester may call with this token.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InvalidRequestRegionException withRegion(String region) {
setRegion(region);
return this;
}
}