
com.amazonaws.services.elasticmapreduce.model.InvalidRequestException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-emr Show documentation
Show all versions of aws-java-sdk-emr Show documentation
The AWS Java SDK for Amazon EMR module holds the client classes that are used for communicating with Amazon Elastic MapReduce Service
/*
* Copyright 2010-2016 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.elasticmapreduce.model;
import com.amazonaws.AmazonServiceException;
/**
*
* This exception occurs when there is something wrong with user input.
*
*/
public class InvalidRequestException extends AmazonServiceException {
private static final long serialVersionUID = 1L;
/**
*
* The error code associated with the exception.
*
*/
@com.fasterxml.jackson.annotation.JsonProperty("ErrorCode")
private String errorCode;
/**
* Constructs a new InvalidRequestException with the specified error
* message.
*
* @param message
* Describes the error encountered.
*/
public InvalidRequestException(String message) {
super(message);
}
/**
*
* The error code associated with the exception.
*
*
* @param errorCode
* The error code associated with the exception.
*/
public void setErrorCode(String errorCode) {
this.errorCode = errorCode;
}
/**
*
* The error code associated with the exception.
*
*
* @return The error code associated with the exception.
*/
public String getErrorCode() {
return this.errorCode;
}
/**
*
* The error code associated with the exception.
*
*
* @param errorCode
* The error code associated with the exception.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public InvalidRequestException withErrorCode(String errorCode) {
setErrorCode(errorCode);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy