com.amazonaws.services.sagemakerruntime.model.ModelErrorException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-sagemakerruntime Show documentation
Show all versions of aws-java-sdk-sagemakerruntime Show documentation
The AWS Java SDK for Amazon SageMaker Runtime module holds the client classes that are used for communicating with Amazon SageMaker Runtime Service
The newest version!
/*
* 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.sagemakerruntime.model;
import javax.annotation.Generated;
/**
*
* Model (owned by the customer in the container) returned 4xx or 5xx error code.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ModelErrorException extends com.amazonaws.services.sagemakerruntime.model.AmazonSageMakerRuntimeException {
private static final long serialVersionUID = 1L;
/**
*
* Original status code.
*
*/
private Integer originalStatusCode;
/**
*
* Original message.
*
*/
private String originalMessage;
/**
*
* The Amazon Resource Name (ARN) of the log stream.
*
*/
private String logStreamArn;
/**
* Constructs a new ModelErrorException with the specified error message.
*
* @param message
* Describes the error encountered.
*/
public ModelErrorException(String message) {
super(message);
}
/**
*
* Original status code.
*
*
* @param originalStatusCode
* Original status code.
*/
@com.fasterxml.jackson.annotation.JsonProperty("OriginalStatusCode")
public void setOriginalStatusCode(Integer originalStatusCode) {
this.originalStatusCode = originalStatusCode;
}
/**
*
* Original status code.
*
*
* @return Original status code.
*/
@com.fasterxml.jackson.annotation.JsonProperty("OriginalStatusCode")
public Integer getOriginalStatusCode() {
return this.originalStatusCode;
}
/**
*
* Original status code.
*
*
* @param originalStatusCode
* Original status code.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModelErrorException withOriginalStatusCode(Integer originalStatusCode) {
setOriginalStatusCode(originalStatusCode);
return this;
}
/**
*
* Original message.
*
*
* @param originalMessage
* Original message.
*/
@com.fasterxml.jackson.annotation.JsonProperty("OriginalMessage")
public void setOriginalMessage(String originalMessage) {
this.originalMessage = originalMessage;
}
/**
*
* Original message.
*
*
* @return Original message.
*/
@com.fasterxml.jackson.annotation.JsonProperty("OriginalMessage")
public String getOriginalMessage() {
return this.originalMessage;
}
/**
*
* Original message.
*
*
* @param originalMessage
* Original message.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModelErrorException withOriginalMessage(String originalMessage) {
setOriginalMessage(originalMessage);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the log stream.
*
*
* @param logStreamArn
* The Amazon Resource Name (ARN) of the log stream.
*/
@com.fasterxml.jackson.annotation.JsonProperty("LogStreamArn")
public void setLogStreamArn(String logStreamArn) {
this.logStreamArn = logStreamArn;
}
/**
*
* The Amazon Resource Name (ARN) of the log stream.
*
*
* @return The Amazon Resource Name (ARN) of the log stream.
*/
@com.fasterxml.jackson.annotation.JsonProperty("LogStreamArn")
public String getLogStreamArn() {
return this.logStreamArn;
}
/**
*
* The Amazon Resource Name (ARN) of the log stream.
*
*
* @param logStreamArn
* The Amazon Resource Name (ARN) of the log stream.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ModelErrorException withLogStreamArn(String logStreamArn) {
setLogStreamArn(logStreamArn);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy