com.amazonaws.services.timestreaminfluxdb.model.ValidationException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-timestreaminfluxdb Show documentation
Show all versions of aws-java-sdk-timestreaminfluxdb Show documentation
The AWS Java SDK for Timestream InfluxDB module holds the client classes that are used for communicating with Timestream InfluxDB Service
/*
* 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.timestreaminfluxdb.model;
import javax.annotation.Generated;
/**
*
* The input fails to satisfy the constraints specified by Timestream for InfluxDB.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ValidationException extends com.amazonaws.services.timestreaminfluxdb.model.AWSTimestreamInfluxDBException {
private static final long serialVersionUID = 1L;
/**
*
* The reason that validation failed.
*
*/
private String reason;
/**
* Constructs a new ValidationException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public ValidationException(String message) {
super(message);
}
/**
*
* The reason that validation failed.
*
*
* @param reason
* The reason that validation failed.
* @see ValidationExceptionReason
*/
@com.fasterxml.jackson.annotation.JsonProperty("reason")
public void setReason(String reason) {
this.reason = reason;
}
/**
*
* The reason that validation failed.
*
*
* @return The reason that validation failed.
* @see ValidationExceptionReason
*/
@com.fasterxml.jackson.annotation.JsonProperty("reason")
public String getReason() {
return this.reason;
}
/**
*
* The reason that validation failed.
*
*
* @param reason
* The reason that validation failed.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ValidationExceptionReason
*/
public ValidationException withReason(String reason) {
setReason(reason);
return this;
}
/**
*
* The reason that validation failed.
*
*
* @param reason
* The reason that validation failed.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ValidationExceptionReason
*/
public ValidationException withReason(ValidationExceptionReason reason) {
this.reason = reason.toString();
return this;
}
}