All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.bedrockruntime.model.ModelErrorException Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Bedrock Runtime module holds the client classes that are used for communicating with Amazon Bedrock 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.bedrockruntime.model;

import javax.annotation.Generated;

/**
 * 

* The request failed due to an error while processing the model. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ModelErrorException extends com.amazonaws.services.bedrockruntime.model.AmazonBedrockRuntimeException { private static final long serialVersionUID = 1L; /** *

* The original status code. *

*/ private Integer originalStatusCode; /** *

* The resource name. *

*/ private String resourceName; /** * Constructs a new ModelErrorException with the specified error message. * * @param message * Describes the error encountered. */ public ModelErrorException(String message) { super(message); } /** *

* The original status code. *

* * @param originalStatusCode * The original status code. */ @com.fasterxml.jackson.annotation.JsonProperty("originalStatusCode") public void setOriginalStatusCode(Integer originalStatusCode) { this.originalStatusCode = originalStatusCode; } /** *

* The original status code. *

* * @return The original status code. */ @com.fasterxml.jackson.annotation.JsonProperty("originalStatusCode") public Integer getOriginalStatusCode() { return this.originalStatusCode; } /** *

* The original status code. *

* * @param originalStatusCode * The 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; } /** *

* The resource name. *

* * @param resourceName * The resource name. */ @com.fasterxml.jackson.annotation.JsonProperty("resourceName") public void setResourceName(String resourceName) { this.resourceName = resourceName; } /** *

* The resource name. *

* * @return The resource name. */ @com.fasterxml.jackson.annotation.JsonProperty("resourceName") public String getResourceName() { return this.resourceName; } /** *

* The resource name. *

* * @param resourceName * The resource name. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelErrorException withResourceName(String resourceName) { setResourceName(resourceName); return this; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy