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

com.amazonaws.services.bedrock.model.ProvisionedModelSummary 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;

/**
 * 

* A summary of information about a Provisioned Throughput. *

*

* This data type is used in the following API operations: *

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

* The name of the Provisioned Throughput. *

*/ private String provisionedModelName; /** *

* The Amazon Resource Name (ARN) of the Provisioned Throughput. *

*/ private String provisionedModelArn; /** *

* The Amazon Resource Name (ARN) of the model associated with the Provisioned Throughput. *

*/ private String modelArn; /** *

* The Amazon Resource Name (ARN) of the model requested to be associated to this Provisioned Throughput. This value * differs from the modelArn if updating hasn't completed. *

*/ private String desiredModelArn; /** *

* The Amazon Resource Name (ARN) of the base model for which the Provisioned Throughput was created, or of the base * model that the custom model for which the Provisioned Throughput was created was customized. *

*/ private String foundationModelArn; /** *

* The number of model units allocated to the Provisioned Throughput. *

*/ private Integer modelUnits; /** *

* The number of model units that was requested to be allocated to the Provisioned Throughput. *

*/ private Integer desiredModelUnits; /** *

* The status of the Provisioned Throughput. *

*/ private String status; /** *

* The duration for which the Provisioned Throughput was committed. *

*/ private String commitmentDuration; /** *

* The timestamp for when the commitment term of the Provisioned Throughput expires. *

*/ private java.util.Date commitmentExpirationTime; /** *

* The time that the Provisioned Throughput was created. *

*/ private java.util.Date creationTime; /** *

* The time that the Provisioned Throughput was last modified. *

*/ private java.util.Date lastModifiedTime; /** *

* The name of the Provisioned Throughput. *

* * @param provisionedModelName * The name of the Provisioned Throughput. */ public void setProvisionedModelName(String provisionedModelName) { this.provisionedModelName = provisionedModelName; } /** *

* The name of the Provisioned Throughput. *

* * @return The name of the Provisioned Throughput. */ public String getProvisionedModelName() { return this.provisionedModelName; } /** *

* The name of the Provisioned Throughput. *

* * @param provisionedModelName * The name of the Provisioned Throughput. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedModelSummary withProvisionedModelName(String provisionedModelName) { setProvisionedModelName(provisionedModelName); return this; } /** *

* The Amazon Resource Name (ARN) of the Provisioned Throughput. *

* * @param provisionedModelArn * The Amazon Resource Name (ARN) of the Provisioned Throughput. */ public void setProvisionedModelArn(String provisionedModelArn) { this.provisionedModelArn = provisionedModelArn; } /** *

* The Amazon Resource Name (ARN) of the Provisioned Throughput. *

* * @return The Amazon Resource Name (ARN) of the Provisioned Throughput. */ public String getProvisionedModelArn() { return this.provisionedModelArn; } /** *

* The Amazon Resource Name (ARN) of the Provisioned Throughput. *

* * @param provisionedModelArn * The Amazon Resource Name (ARN) of the Provisioned Throughput. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedModelSummary withProvisionedModelArn(String provisionedModelArn) { setProvisionedModelArn(provisionedModelArn); return this; } /** *

* The Amazon Resource Name (ARN) of the model associated with the Provisioned Throughput. *

* * @param modelArn * The Amazon Resource Name (ARN) of the model associated with the Provisioned Throughput. */ public void setModelArn(String modelArn) { this.modelArn = modelArn; } /** *

* The Amazon Resource Name (ARN) of the model associated with the Provisioned Throughput. *

* * @return The Amazon Resource Name (ARN) of the model associated with the Provisioned Throughput. */ public String getModelArn() { return this.modelArn; } /** *

* The Amazon Resource Name (ARN) of the model associated with the Provisioned Throughput. *

* * @param modelArn * The Amazon Resource Name (ARN) of the model associated with the Provisioned Throughput. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedModelSummary withModelArn(String modelArn) { setModelArn(modelArn); return this; } /** *

* The Amazon Resource Name (ARN) of the model requested to be associated to this Provisioned Throughput. This value * differs from the modelArn if updating hasn't completed. *

* * @param desiredModelArn * The Amazon Resource Name (ARN) of the model requested to be associated to this Provisioned Throughput. * This value differs from the modelArn if updating hasn't completed. */ public void setDesiredModelArn(String desiredModelArn) { this.desiredModelArn = desiredModelArn; } /** *

* The Amazon Resource Name (ARN) of the model requested to be associated to this Provisioned Throughput. This value * differs from the modelArn if updating hasn't completed. *

* * @return The Amazon Resource Name (ARN) of the model requested to be associated to this Provisioned Throughput. * This value differs from the modelArn if updating hasn't completed. */ public String getDesiredModelArn() { return this.desiredModelArn; } /** *

* The Amazon Resource Name (ARN) of the model requested to be associated to this Provisioned Throughput. This value * differs from the modelArn if updating hasn't completed. *

* * @param desiredModelArn * The Amazon Resource Name (ARN) of the model requested to be associated to this Provisioned Throughput. * This value differs from the modelArn if updating hasn't completed. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedModelSummary withDesiredModelArn(String desiredModelArn) { setDesiredModelArn(desiredModelArn); return this; } /** *

* The Amazon Resource Name (ARN) of the base model for which the Provisioned Throughput was created, or of the base * model that the custom model for which the Provisioned Throughput was created was customized. *

* * @param foundationModelArn * The Amazon Resource Name (ARN) of the base model for which the Provisioned Throughput was created, or of * the base model that the custom model for which the Provisioned Throughput was created was customized. */ public void setFoundationModelArn(String foundationModelArn) { this.foundationModelArn = foundationModelArn; } /** *

* The Amazon Resource Name (ARN) of the base model for which the Provisioned Throughput was created, or of the base * model that the custom model for which the Provisioned Throughput was created was customized. *

* * @return The Amazon Resource Name (ARN) of the base model for which the Provisioned Throughput was created, or of * the base model that the custom model for which the Provisioned Throughput was created was customized. */ public String getFoundationModelArn() { return this.foundationModelArn; } /** *

* The Amazon Resource Name (ARN) of the base model for which the Provisioned Throughput was created, or of the base * model that the custom model for which the Provisioned Throughput was created was customized. *

* * @param foundationModelArn * The Amazon Resource Name (ARN) of the base model for which the Provisioned Throughput was created, or of * the base model that the custom model for which the Provisioned Throughput was created was customized. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedModelSummary withFoundationModelArn(String foundationModelArn) { setFoundationModelArn(foundationModelArn); return this; } /** *

* The number of model units allocated to the Provisioned Throughput. *

* * @param modelUnits * The number of model units allocated to the Provisioned Throughput. */ public void setModelUnits(Integer modelUnits) { this.modelUnits = modelUnits; } /** *

* The number of model units allocated to the Provisioned Throughput. *

* * @return The number of model units allocated to the Provisioned Throughput. */ public Integer getModelUnits() { return this.modelUnits; } /** *

* The number of model units allocated to the Provisioned Throughput. *

* * @param modelUnits * The number of model units allocated to the Provisioned Throughput. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedModelSummary withModelUnits(Integer modelUnits) { setModelUnits(modelUnits); return this; } /** *

* The number of model units that was requested to be allocated to the Provisioned Throughput. *

* * @param desiredModelUnits * The number of model units that was requested to be allocated to the Provisioned Throughput. */ public void setDesiredModelUnits(Integer desiredModelUnits) { this.desiredModelUnits = desiredModelUnits; } /** *

* The number of model units that was requested to be allocated to the Provisioned Throughput. *

* * @return The number of model units that was requested to be allocated to the Provisioned Throughput. */ public Integer getDesiredModelUnits() { return this.desiredModelUnits; } /** *

* The number of model units that was requested to be allocated to the Provisioned Throughput. *

* * @param desiredModelUnits * The number of model units that was requested to be allocated to the Provisioned Throughput. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedModelSummary withDesiredModelUnits(Integer desiredModelUnits) { setDesiredModelUnits(desiredModelUnits); return this; } /** *

* The status of the Provisioned Throughput. *

* * @param status * The status of the Provisioned Throughput. * @see ProvisionedModelStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the Provisioned Throughput. *

* * @return The status of the Provisioned Throughput. * @see ProvisionedModelStatus */ public String getStatus() { return this.status; } /** *

* The status of the Provisioned Throughput. *

* * @param status * The status of the Provisioned Throughput. * @return Returns a reference to this object so that method calls can be chained together. * @see ProvisionedModelStatus */ public ProvisionedModelSummary withStatus(String status) { setStatus(status); return this; } /** *

* The status of the Provisioned Throughput. *

* * @param status * The status of the Provisioned Throughput. * @return Returns a reference to this object so that method calls can be chained together. * @see ProvisionedModelStatus */ public ProvisionedModelSummary withStatus(ProvisionedModelStatus status) { this.status = status.toString(); return this; } /** *

* The duration for which the Provisioned Throughput was committed. *

* * @param commitmentDuration * The duration for which the Provisioned Throughput was committed. * @see CommitmentDuration */ public void setCommitmentDuration(String commitmentDuration) { this.commitmentDuration = commitmentDuration; } /** *

* The duration for which the Provisioned Throughput was committed. *

* * @return The duration for which the Provisioned Throughput was committed. * @see CommitmentDuration */ public String getCommitmentDuration() { return this.commitmentDuration; } /** *

* The duration for which the Provisioned Throughput was committed. *

* * @param commitmentDuration * The duration for which the Provisioned Throughput was committed. * @return Returns a reference to this object so that method calls can be chained together. * @see CommitmentDuration */ public ProvisionedModelSummary withCommitmentDuration(String commitmentDuration) { setCommitmentDuration(commitmentDuration); return this; } /** *

* The duration for which the Provisioned Throughput was committed. *

* * @param commitmentDuration * The duration for which the Provisioned Throughput was committed. * @return Returns a reference to this object so that method calls can be chained together. * @see CommitmentDuration */ public ProvisionedModelSummary withCommitmentDuration(CommitmentDuration commitmentDuration) { this.commitmentDuration = commitmentDuration.toString(); return this; } /** *

* The timestamp for when the commitment term of the Provisioned Throughput expires. *

* * @param commitmentExpirationTime * The timestamp for when the commitment term of the Provisioned Throughput expires. */ public void setCommitmentExpirationTime(java.util.Date commitmentExpirationTime) { this.commitmentExpirationTime = commitmentExpirationTime; } /** *

* The timestamp for when the commitment term of the Provisioned Throughput expires. *

* * @return The timestamp for when the commitment term of the Provisioned Throughput expires. */ public java.util.Date getCommitmentExpirationTime() { return this.commitmentExpirationTime; } /** *

* The timestamp for when the commitment term of the Provisioned Throughput expires. *

* * @param commitmentExpirationTime * The timestamp for when the commitment term of the Provisioned Throughput expires. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedModelSummary withCommitmentExpirationTime(java.util.Date commitmentExpirationTime) { setCommitmentExpirationTime(commitmentExpirationTime); return this; } /** *

* The time that the Provisioned Throughput was created. *

* * @param creationTime * The time that the Provisioned Throughput was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* The time that the Provisioned Throughput was created. *

* * @return The time that the Provisioned Throughput was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* The time that the Provisioned Throughput was created. *

* * @param creationTime * The time that the Provisioned Throughput was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedModelSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* The time that the Provisioned Throughput was last modified. *

* * @param lastModifiedTime * The time that the Provisioned Throughput was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* The time that the Provisioned Throughput was last modified. *

* * @return The time that the Provisioned Throughput was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** *

* The time that the Provisioned Throughput was last modified. *

* * @param lastModifiedTime * The time that the Provisioned Throughput was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ProvisionedModelSummary withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); 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 (getProvisionedModelName() != null) sb.append("ProvisionedModelName: ").append(getProvisionedModelName()).append(","); if (getProvisionedModelArn() != null) sb.append("ProvisionedModelArn: ").append(getProvisionedModelArn()).append(","); if (getModelArn() != null) sb.append("ModelArn: ").append(getModelArn()).append(","); if (getDesiredModelArn() != null) sb.append("DesiredModelArn: ").append(getDesiredModelArn()).append(","); if (getFoundationModelArn() != null) sb.append("FoundationModelArn: ").append(getFoundationModelArn()).append(","); if (getModelUnits() != null) sb.append("ModelUnits: ").append(getModelUnits()).append(","); if (getDesiredModelUnits() != null) sb.append("DesiredModelUnits: ").append(getDesiredModelUnits()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCommitmentDuration() != null) sb.append("CommitmentDuration: ").append(getCommitmentDuration()).append(","); if (getCommitmentExpirationTime() != null) sb.append("CommitmentExpirationTime: ").append(getCommitmentExpirationTime()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ProvisionedModelSummary == false) return false; ProvisionedModelSummary other = (ProvisionedModelSummary) obj; if (other.getProvisionedModelName() == null ^ this.getProvisionedModelName() == null) return false; if (other.getProvisionedModelName() != null && other.getProvisionedModelName().equals(this.getProvisionedModelName()) == false) return false; if (other.getProvisionedModelArn() == null ^ this.getProvisionedModelArn() == null) return false; if (other.getProvisionedModelArn() != null && other.getProvisionedModelArn().equals(this.getProvisionedModelArn()) == false) return false; if (other.getModelArn() == null ^ this.getModelArn() == null) return false; if (other.getModelArn() != null && other.getModelArn().equals(this.getModelArn()) == false) return false; if (other.getDesiredModelArn() == null ^ this.getDesiredModelArn() == null) return false; if (other.getDesiredModelArn() != null && other.getDesiredModelArn().equals(this.getDesiredModelArn()) == false) return false; if (other.getFoundationModelArn() == null ^ this.getFoundationModelArn() == null) return false; if (other.getFoundationModelArn() != null && other.getFoundationModelArn().equals(this.getFoundationModelArn()) == false) return false; if (other.getModelUnits() == null ^ this.getModelUnits() == null) return false; if (other.getModelUnits() != null && other.getModelUnits().equals(this.getModelUnits()) == false) return false; if (other.getDesiredModelUnits() == null ^ this.getDesiredModelUnits() == null) return false; if (other.getDesiredModelUnits() != null && other.getDesiredModelUnits().equals(this.getDesiredModelUnits()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCommitmentDuration() == null ^ this.getCommitmentDuration() == null) return false; if (other.getCommitmentDuration() != null && other.getCommitmentDuration().equals(this.getCommitmentDuration()) == false) return false; if (other.getCommitmentExpirationTime() == null ^ this.getCommitmentExpirationTime() == null) return false; if (other.getCommitmentExpirationTime() != null && other.getCommitmentExpirationTime().equals(this.getCommitmentExpirationTime()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProvisionedModelName() == null) ? 0 : getProvisionedModelName().hashCode()); hashCode = prime * hashCode + ((getProvisionedModelArn() == null) ? 0 : getProvisionedModelArn().hashCode()); hashCode = prime * hashCode + ((getModelArn() == null) ? 0 : getModelArn().hashCode()); hashCode = prime * hashCode + ((getDesiredModelArn() == null) ? 0 : getDesiredModelArn().hashCode()); hashCode = prime * hashCode + ((getFoundationModelArn() == null) ? 0 : getFoundationModelArn().hashCode()); hashCode = prime * hashCode + ((getModelUnits() == null) ? 0 : getModelUnits().hashCode()); hashCode = prime * hashCode + ((getDesiredModelUnits() == null) ? 0 : getDesiredModelUnits().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCommitmentDuration() == null) ? 0 : getCommitmentDuration().hashCode()); hashCode = prime * hashCode + ((getCommitmentExpirationTime() == null) ? 0 : getCommitmentExpirationTime().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); return hashCode; } @Override public ProvisionedModelSummary clone() { try { return (ProvisionedModelSummary) 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.ProvisionedModelSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy