com.amazonaws.services.neptunedata.model.MalformedQueryException Maven / Gradle / Ivy
Show all versions of aws-java-sdk-neptunedata 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.neptunedata.model;
import javax.annotation.Generated;
/**
*
* Raised when a query is submitted that is syntactically incorrect or does not pass additional validation.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class MalformedQueryException extends com.amazonaws.services.neptunedata.model.AmazonNeptunedataException {
private static final long serialVersionUID = 1L;
/**
*
* A detailed message describing the problem.
*
*/
private String detailedMessage;
/**
*
* The ID of the malformed query request.
*
*/
private String requestId;
/**
*
* The HTTP status code returned with the exception.
*
*/
private String code;
/**
* Constructs a new MalformedQueryException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public MalformedQueryException(String message) {
super(message);
}
/**
*
* A detailed message describing the problem.
*
*
* @param detailedMessage
* A detailed message describing the problem.
*/
@com.fasterxml.jackson.annotation.JsonProperty("detailedMessage")
public void setDetailedMessage(String detailedMessage) {
this.detailedMessage = detailedMessage;
}
/**
*
* A detailed message describing the problem.
*
*
* @return A detailed message describing the problem.
*/
@com.fasterxml.jackson.annotation.JsonProperty("detailedMessage")
public String getDetailedMessage() {
return this.detailedMessage;
}
/**
*
* A detailed message describing the problem.
*
*
* @param detailedMessage
* A detailed message describing the problem.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MalformedQueryException withDetailedMessage(String detailedMessage) {
setDetailedMessage(detailedMessage);
return this;
}
/**
*
* The ID of the malformed query request.
*
*
* @param requestId
* The ID of the malformed query request.
*/
@com.fasterxml.jackson.annotation.JsonProperty("requestId")
public void setRequestId(String requestId) {
this.requestId = requestId;
}
/**
*
* The ID of the malformed query request.
*
*
* @return The ID of the malformed query request.
*/
@com.fasterxml.jackson.annotation.JsonProperty("requestId")
public String getRequestId() {
return this.requestId;
}
/**
*
* The ID of the malformed query request.
*
*
* @param requestId
* The ID of the malformed query request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MalformedQueryException withRequestId(String requestId) {
setRequestId(requestId);
return this;
}
/**
*
* The HTTP status code returned with the exception.
*
*
* @param code
* The HTTP status code returned with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("code")
public void setCode(String code) {
this.code = code;
}
/**
*
* The HTTP status code returned with the exception.
*
*
* @return The HTTP status code returned with the exception.
*/
@com.fasterxml.jackson.annotation.JsonProperty("code")
public String getCode() {
return this.code;
}
/**
*
* The HTTP status code returned with the exception.
*
*
* @param code
* The HTTP status code returned with the exception.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public MalformedQueryException withCode(String code) {
setCode(code);
return this;
}
}