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

com.amazonaws.services.bedrock.model.EvaluationBedrockModel Maven / Gradle / Ivy

Go to download

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

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Contains the ARN of the Amazon Bedrock models specified in your model evaluation job. Each Amazon Bedrock model * supports different inferenceParams. To learn more about supported inference parameters for Amazon * Bedrock models, see Inference * parameters for foundation models. *

*

* The inferenceParams are specified using JSON. To successfully insert JSON as string make sure that all * quotations are properly escaped. For example, "temperature":"0.25" key value pair would need to be * formatted as \"temperature\":\"0.25\" to successfully accepted in the request. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EvaluationBedrockModel implements Serializable, Cloneable, StructuredPojo { /** *

* The ARN of the Amazon Bedrock model specified. *

*/ private String modelIdentifier; /** *

* Each Amazon Bedrock support different inference parameters that change how the model behaves during inference. *

*/ private String inferenceParams; /** *

* The ARN of the Amazon Bedrock model specified. *

* * @param modelIdentifier * The ARN of the Amazon Bedrock model specified. */ public void setModelIdentifier(String modelIdentifier) { this.modelIdentifier = modelIdentifier; } /** *

* The ARN of the Amazon Bedrock model specified. *

* * @return The ARN of the Amazon Bedrock model specified. */ public String getModelIdentifier() { return this.modelIdentifier; } /** *

* The ARN of the Amazon Bedrock model specified. *

* * @param modelIdentifier * The ARN of the Amazon Bedrock model specified. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationBedrockModel withModelIdentifier(String modelIdentifier) { setModelIdentifier(modelIdentifier); return this; } /** *

* Each Amazon Bedrock support different inference parameters that change how the model behaves during inference. *

* * @param inferenceParams * Each Amazon Bedrock support different inference parameters that change how the model behaves during * inference. */ public void setInferenceParams(String inferenceParams) { this.inferenceParams = inferenceParams; } /** *

* Each Amazon Bedrock support different inference parameters that change how the model behaves during inference. *

* * @return Each Amazon Bedrock support different inference parameters that change how the model behaves during * inference. */ public String getInferenceParams() { return this.inferenceParams; } /** *

* Each Amazon Bedrock support different inference parameters that change how the model behaves during inference. *

* * @param inferenceParams * Each Amazon Bedrock support different inference parameters that change how the model behaves during * inference. * @return Returns a reference to this object so that method calls can be chained together. */ public EvaluationBedrockModel withInferenceParams(String inferenceParams) { setInferenceParams(inferenceParams); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getModelIdentifier() != null) sb.append("ModelIdentifier: ").append(getModelIdentifier()).append(","); if (getInferenceParams() != null) sb.append("InferenceParams: ").append("***Sensitive Data Redacted***"); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EvaluationBedrockModel == false) return false; EvaluationBedrockModel other = (EvaluationBedrockModel) obj; if (other.getModelIdentifier() == null ^ this.getModelIdentifier() == null) return false; if (other.getModelIdentifier() != null && other.getModelIdentifier().equals(this.getModelIdentifier()) == false) return false; if (other.getInferenceParams() == null ^ this.getInferenceParams() == null) return false; if (other.getInferenceParams() != null && other.getInferenceParams().equals(this.getInferenceParams()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getModelIdentifier() == null) ? 0 : getModelIdentifier().hashCode()); hashCode = prime * hashCode + ((getInferenceParams() == null) ? 0 : getInferenceParams().hashCode()); return hashCode; } @Override public EvaluationBedrockModel clone() { try { return (EvaluationBedrockModel) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.bedrock.model.transform.EvaluationBedrockModelMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy