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

com.amazonaws.services.comprehend.model.UpdateEndpointRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Comprehend module holds the client classes that are used for communicating with Amazon Comprehend Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2018-2023 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.comprehend.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The Amazon Resource Number (ARN) of the endpoint being updated. *

*/ private String endpointArn; /** *

* The ARN of the new model to use when updating an existing endpoint. *

*/ private String desiredModelArn; /** *

* The desired number of inference units to be used by the model using this endpoint. Each inference unit represents * of a throughput of 100 characters per second. *

*/ private Integer desiredInferenceUnits; /** *

* Data access role ARN to use in case the new model is encrypted with a customer CMK. *

*/ private String desiredDataAccessRoleArn; /** *

* The Amazon Resource Number (ARN) of the flywheel *

*/ private String flywheelArn; /** *

* The Amazon Resource Number (ARN) of the endpoint being updated. *

* * @param endpointArn * The Amazon Resource Number (ARN) of the endpoint being updated. */ public void setEndpointArn(String endpointArn) { this.endpointArn = endpointArn; } /** *

* The Amazon Resource Number (ARN) of the endpoint being updated. *

* * @return The Amazon Resource Number (ARN) of the endpoint being updated. */ public String getEndpointArn() { return this.endpointArn; } /** *

* The Amazon Resource Number (ARN) of the endpoint being updated. *

* * @param endpointArn * The Amazon Resource Number (ARN) of the endpoint being updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointRequest withEndpointArn(String endpointArn) { setEndpointArn(endpointArn); return this; } /** *

* The ARN of the new model to use when updating an existing endpoint. *

* * @param desiredModelArn * The ARN of the new model to use when updating an existing endpoint. */ public void setDesiredModelArn(String desiredModelArn) { this.desiredModelArn = desiredModelArn; } /** *

* The ARN of the new model to use when updating an existing endpoint. *

* * @return The ARN of the new model to use when updating an existing endpoint. */ public String getDesiredModelArn() { return this.desiredModelArn; } /** *

* The ARN of the new model to use when updating an existing endpoint. *

* * @param desiredModelArn * The ARN of the new model to use when updating an existing endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointRequest withDesiredModelArn(String desiredModelArn) { setDesiredModelArn(desiredModelArn); return this; } /** *

* The desired number of inference units to be used by the model using this endpoint. Each inference unit represents * of a throughput of 100 characters per second. *

* * @param desiredInferenceUnits * The desired number of inference units to be used by the model using this endpoint. Each inference unit * represents of a throughput of 100 characters per second. */ public void setDesiredInferenceUnits(Integer desiredInferenceUnits) { this.desiredInferenceUnits = desiredInferenceUnits; } /** *

* The desired number of inference units to be used by the model using this endpoint. Each inference unit represents * of a throughput of 100 characters per second. *

* * @return The desired number of inference units to be used by the model using this endpoint. Each inference unit * represents of a throughput of 100 characters per second. */ public Integer getDesiredInferenceUnits() { return this.desiredInferenceUnits; } /** *

* The desired number of inference units to be used by the model using this endpoint. Each inference unit represents * of a throughput of 100 characters per second. *

* * @param desiredInferenceUnits * The desired number of inference units to be used by the model using this endpoint. Each inference unit * represents of a throughput of 100 characters per second. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointRequest withDesiredInferenceUnits(Integer desiredInferenceUnits) { setDesiredInferenceUnits(desiredInferenceUnits); return this; } /** *

* Data access role ARN to use in case the new model is encrypted with a customer CMK. *

* * @param desiredDataAccessRoleArn * Data access role ARN to use in case the new model is encrypted with a customer CMK. */ public void setDesiredDataAccessRoleArn(String desiredDataAccessRoleArn) { this.desiredDataAccessRoleArn = desiredDataAccessRoleArn; } /** *

* Data access role ARN to use in case the new model is encrypted with a customer CMK. *

* * @return Data access role ARN to use in case the new model is encrypted with a customer CMK. */ public String getDesiredDataAccessRoleArn() { return this.desiredDataAccessRoleArn; } /** *

* Data access role ARN to use in case the new model is encrypted with a customer CMK. *

* * @param desiredDataAccessRoleArn * Data access role ARN to use in case the new model is encrypted with a customer CMK. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointRequest withDesiredDataAccessRoleArn(String desiredDataAccessRoleArn) { setDesiredDataAccessRoleArn(desiredDataAccessRoleArn); return this; } /** *

* The Amazon Resource Number (ARN) of the flywheel *

* * @param flywheelArn * The Amazon Resource Number (ARN) of the flywheel */ public void setFlywheelArn(String flywheelArn) { this.flywheelArn = flywheelArn; } /** *

* The Amazon Resource Number (ARN) of the flywheel *

* * @return The Amazon Resource Number (ARN) of the flywheel */ public String getFlywheelArn() { return this.flywheelArn; } /** *

* The Amazon Resource Number (ARN) of the flywheel *

* * @param flywheelArn * The Amazon Resource Number (ARN) of the flywheel * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateEndpointRequest withFlywheelArn(String flywheelArn) { setFlywheelArn(flywheelArn); 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 (getEndpointArn() != null) sb.append("EndpointArn: ").append(getEndpointArn()).append(","); if (getDesiredModelArn() != null) sb.append("DesiredModelArn: ").append(getDesiredModelArn()).append(","); if (getDesiredInferenceUnits() != null) sb.append("DesiredInferenceUnits: ").append(getDesiredInferenceUnits()).append(","); if (getDesiredDataAccessRoleArn() != null) sb.append("DesiredDataAccessRoleArn: ").append(getDesiredDataAccessRoleArn()).append(","); if (getFlywheelArn() != null) sb.append("FlywheelArn: ").append(getFlywheelArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateEndpointRequest == false) return false; UpdateEndpointRequest other = (UpdateEndpointRequest) obj; if (other.getEndpointArn() == null ^ this.getEndpointArn() == null) return false; if (other.getEndpointArn() != null && other.getEndpointArn().equals(this.getEndpointArn()) == 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.getDesiredInferenceUnits() == null ^ this.getDesiredInferenceUnits() == null) return false; if (other.getDesiredInferenceUnits() != null && other.getDesiredInferenceUnits().equals(this.getDesiredInferenceUnits()) == false) return false; if (other.getDesiredDataAccessRoleArn() == null ^ this.getDesiredDataAccessRoleArn() == null) return false; if (other.getDesiredDataAccessRoleArn() != null && other.getDesiredDataAccessRoleArn().equals(this.getDesiredDataAccessRoleArn()) == false) return false; if (other.getFlywheelArn() == null ^ this.getFlywheelArn() == null) return false; if (other.getFlywheelArn() != null && other.getFlywheelArn().equals(this.getFlywheelArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndpointArn() == null) ? 0 : getEndpointArn().hashCode()); hashCode = prime * hashCode + ((getDesiredModelArn() == null) ? 0 : getDesiredModelArn().hashCode()); hashCode = prime * hashCode + ((getDesiredInferenceUnits() == null) ? 0 : getDesiredInferenceUnits().hashCode()); hashCode = prime * hashCode + ((getDesiredDataAccessRoleArn() == null) ? 0 : getDesiredDataAccessRoleArn().hashCode()); hashCode = prime * hashCode + ((getFlywheelArn() == null) ? 0 : getFlywheelArn().hashCode()); return hashCode; } @Override public UpdateEndpointRequest clone() { return (UpdateEndpointRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy