/* * Copyright 2010-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; /** *
* Specifies information about the specified endpoint. For information about * endpoints, see Managing endpoints. *
*/ public class EndpointProperties implements Serializable { /** ** The Amazon Resource Number (ARN) of the endpoint. *
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
* -classifier
* -endpoint|entity-recognizer-endpoint)/[a-zA-Z0-9](-*[a-zA-Z0-9])*
*/
private String endpointArn;
/**
*
* Specifies the status of the endpoint. Because the endpoint updates and
* creation are asynchronous, so customers will need to wait for the
* endpoint to be Ready
status before making inference
* requests.
*
* Constraints:
* Allowed Values: CREATING, DELETING, FAILED, IN_SERVICE, UPDATING
*/
private String status;
/**
*
* Specifies a reason for failure in cases of Failed
status.
*
* The Amazon Resource Number (ARN) of the model to which the endpoint is * attached. *
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
* -classifier
* |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
* Z0-9](-*[a-zA-Z0-9])*)?
*/
private String modelArn;
/**
*
* ARN of the new model to use for updating an existing endpoint. This ARN * is going to be different from the model ARN when the update is in * progress *
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
* -classifier
* |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
* Z0-9](-*[a-zA-Z0-9])*)?
*/
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. *
*
* Constraints:
* Range: 1 -
*/
private Integer desiredInferenceUnits;
/**
*
* The number of inference units currently used by the model using this * endpoint. *
*
* Constraints:
* Range: 1 -
*/
private Integer currentInferenceUnits;
/**
*
* The creation date and time of the endpoint. *
*/ private java.util.Date creationTime; /** ** The date and time that the endpoint was last modified. *
*/ private java.util.Date lastModifiedTime; /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon * Comprehend read access to trained custom models encrypted with a customer * managed key (ModelKmsKeyId). *
*
* Constraints:
* Length: 20 - 2048
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*/
private String dataAccessRoleArn;
/**
*
* Data access role ARN to use in case the new model is encrypted with a * customer KMS key. *
*
* Constraints:
* Length: 20 - 2048
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*/
private String desiredDataAccessRoleArn;
/**
*
* The Amazon Resource Number (ARN) of the flywheel *
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
* /[a-zA-Z0-9](-*[a-zA-Z0-9])*
*/
private String flywheelArn;
/**
*
* The Amazon Resource Number (ARN) of the endpoint. *
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
* -classifier
* -endpoint|entity-recognizer-endpoint)/[a-zA-Z0-9](-*[a-zA-Z0-9])*
*
* @return
* The Amazon Resource Number (ARN) of the endpoint. *
*/ public String getEndpointArn() { return endpointArn; } /** ** The Amazon Resource Number (ARN) of the endpoint. *
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
* -classifier
* -endpoint|entity-recognizer-endpoint)/[a-zA-Z0-9](-*[a-zA-Z0-9])*
*
* @param endpointArn
* The Amazon Resource Number (ARN) of the endpoint. *
*/ public void setEndpointArn(String endpointArn) { this.endpointArn = endpointArn; } /** ** The Amazon Resource Number (ARN) of the endpoint. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
* -classifier
* -endpoint|entity-recognizer-endpoint)/[a-zA-Z0-9](-*[a-zA-Z0-9])*
*
* @param endpointArn
* The Amazon Resource Number (ARN) of the endpoint. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EndpointProperties withEndpointArn(String endpointArn) { this.endpointArn = endpointArn; return this; } /** *
* Specifies the status of the endpoint. Because the endpoint updates and
* creation are asynchronous, so customers will need to wait for the
* endpoint to be Ready
status before making inference
* requests.
*
* Constraints:
* Allowed Values: CREATING, DELETING, FAILED, IN_SERVICE, UPDATING
*
* @return
* Specifies the status of the endpoint. Because the endpoint
* updates and creation are asynchronous, so customers will need to
* wait for the endpoint to be Ready
status before
* making inference requests.
*
* Specifies the status of the endpoint. Because the endpoint updates and
* creation are asynchronous, so customers will need to wait for the
* endpoint to be Ready
status before making inference
* requests.
*
* Constraints:
* Allowed Values: CREATING, DELETING, FAILED, IN_SERVICE, UPDATING
*
* @param status
* Specifies the status of the endpoint. Because the endpoint
* updates and creation are asynchronous, so customers will need
* to wait for the endpoint to be Ready
status
* before making inference requests.
*
* Specifies the status of the endpoint. Because the endpoint updates and
* creation are asynchronous, so customers will need to wait for the
* endpoint to be Ready
status before making inference
* requests.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: CREATING, DELETING, FAILED, IN_SERVICE, UPDATING
*
* @param status
* Specifies the status of the endpoint. Because the endpoint
* updates and creation are asynchronous, so customers will need
* to wait for the endpoint to be Ready
status
* before making inference requests.
*
* Specifies the status of the endpoint. Because the endpoint updates and
* creation are asynchronous, so customers will need to wait for the
* endpoint to be Ready
status before making inference
* requests.
*
* Constraints:
* Allowed Values: CREATING, DELETING, FAILED, IN_SERVICE, UPDATING
*
* @param status
* Specifies the status of the endpoint. Because the endpoint
* updates and creation are asynchronous, so customers will need
* to wait for the endpoint to be Ready
status
* before making inference requests.
*
* Specifies the status of the endpoint. Because the endpoint updates and
* creation are asynchronous, so customers will need to wait for the
* endpoint to be Ready
status before making inference
* requests.
*
* Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Allowed Values: CREATING, DELETING, FAILED, IN_SERVICE, UPDATING
*
* @param status
* Specifies the status of the endpoint. Because the endpoint
* updates and creation are asynchronous, so customers will need
* to wait for the endpoint to be Ready
status
* before making inference requests.
*
* Specifies a reason for failure in cases of Failed
status.
*
* Specifies a reason for failure in cases of Failed
* status.
*
* Specifies a reason for failure in cases of Failed
status.
*
* Specifies a reason for failure in cases of Failed
* status.
*
* Specifies a reason for failure in cases of Failed
status.
*
* Returns a reference to this object so that method calls can be chained * together. * * @param message
* Specifies a reason for failure in cases of Failed
* status.
*
* The Amazon Resource Number (ARN) of the model to which the endpoint is * attached. *
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
* -classifier
* |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
* Z0-9](-*[a-zA-Z0-9])*)?
*
* @return
* The Amazon Resource Number (ARN) of the model to which the * endpoint is attached. *
*/ public String getModelArn() { return modelArn; } /** ** The Amazon Resource Number (ARN) of the model to which the endpoint is * attached. *
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
* -classifier
* |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
* Z0-9](-*[a-zA-Z0-9])*)?
*
* @param modelArn
* The Amazon Resource Number (ARN) of the model to which the * endpoint is attached. *
*/ public void setModelArn(String modelArn) { this.modelArn = modelArn; } /** ** The Amazon Resource Number (ARN) of the model to which the endpoint is * attached. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
* -classifier
* |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
* Z0-9](-*[a-zA-Z0-9])*)?
*
* @param modelArn
* The Amazon Resource Number (ARN) of the model to which the * endpoint is attached. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EndpointProperties withModelArn(String modelArn) { this.modelArn = modelArn; return this; } /** ** ARN of the new model to use for updating an existing endpoint. This ARN * is going to be different from the model ARN when the update is in * progress *
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
* -classifier
* |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
* Z0-9](-*[a-zA-Z0-9])*)?
*
* @return
* ARN of the new model to use for updating an existing endpoint. * This ARN is going to be different from the model ARN when the * update is in progress *
*/ public String getDesiredModelArn() { return desiredModelArn; } /** ** ARN of the new model to use for updating an existing endpoint. This ARN * is going to be different from the model ARN when the update is in * progress *
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
* -classifier
* |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
* Z0-9](-*[a-zA-Z0-9])*)?
*
* @param desiredModelArn
* ARN of the new model to use for updating an existing endpoint. * This ARN is going to be different from the model ARN when the * update is in progress *
*/ public void setDesiredModelArn(String desiredModelArn) { this.desiredModelArn = desiredModelArn; } /** ** ARN of the new model to use for updating an existing endpoint. This ARN * is going to be different from the model ARN when the update is in * progress *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:(document
* -classifier
* |entity-recognizer)/[a-zA-Z0-9](-*[a-zA-Z0-9])*(/version/[a-zA-
* Z0-9](-*[a-zA-Z0-9])*)?
*
* @param desiredModelArn
* ARN of the new model to use for updating an existing endpoint. * This ARN is going to be different from the model ARN when the * update is in progress *
* @return A reference to this updated object so that method calls can be * chained together. */ public EndpointProperties withDesiredModelArn(String desiredModelArn) { this.desiredModelArn = 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. *
*
* Constraints:
* Range: 1 -
*
* @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 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. *
*
* Constraints:
* Range: 1 -
*
* @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. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 1 -
*
* @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 A reference to this updated object so that method calls can be * chained together. */ public EndpointProperties withDesiredInferenceUnits(Integer desiredInferenceUnits) { this.desiredInferenceUnits = desiredInferenceUnits; return this; } /** ** The number of inference units currently used by the model using this * endpoint. *
*
* Constraints:
* Range: 1 -
*
* @return
* The number of inference units currently used by the model using * this endpoint. *
*/ public Integer getCurrentInferenceUnits() { return currentInferenceUnits; } /** ** The number of inference units currently used by the model using this * endpoint. *
*
* Constraints:
* Range: 1 -
*
* @param currentInferenceUnits
* The number of inference units currently used by the model * using this endpoint. *
*/ public void setCurrentInferenceUnits(Integer currentInferenceUnits) { this.currentInferenceUnits = currentInferenceUnits; } /** ** The number of inference units currently used by the model using this * endpoint. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Range: 1 -
*
* @param currentInferenceUnits
* The number of inference units currently used by the model * using this endpoint. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EndpointProperties withCurrentInferenceUnits(Integer currentInferenceUnits) { this.currentInferenceUnits = currentInferenceUnits; return this; } /** ** The creation date and time of the endpoint. *
* * @return* The creation date and time of the endpoint. *
*/ public java.util.Date getCreationTime() { return creationTime; } /** ** The creation date and time of the endpoint. *
* * @param creationTime* The creation date and time of the endpoint. *
*/ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** ** The creation date and time of the endpoint. *
** Returns a reference to this object so that method calls can be chained * together. * * @param creationTime
* The creation date and time of the endpoint. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EndpointProperties withCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; return this; } /** ** The date and time that the endpoint was last modified. *
* * @return* The date and time that the endpoint was last modified. *
*/ public java.util.Date getLastModifiedTime() { return lastModifiedTime; } /** ** The date and time that the endpoint was last modified. *
* * @param lastModifiedTime* The date and time that the endpoint was last modified. *
*/ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** ** The date and time that the endpoint was last modified. *
** Returns a reference to this object so that method calls can be chained * together. * * @param lastModifiedTime
* The date and time that the endpoint was last modified. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EndpointProperties withLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; return this; } /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon * Comprehend read access to trained custom models encrypted with a customer * managed key (ModelKmsKeyId). *
*
* Constraints:
* Length: 20 - 2048
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
* The Amazon Resource Name (ARN) of the IAM role that grants Amazon * Comprehend read access to trained custom models encrypted with a * customer managed key (ModelKmsKeyId). *
*/ public String getDataAccessRoleArn() { return dataAccessRoleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon * Comprehend read access to trained custom models encrypted with a customer * managed key (ModelKmsKeyId). *
*
* Constraints:
* Length: 20 - 2048
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
* The Amazon Resource Name (ARN) of the IAM role that grants * Amazon Comprehend read access to trained custom models * encrypted with a customer managed key (ModelKmsKeyId). *
*/ public void setDataAccessRoleArn(String dataAccessRoleArn) { this.dataAccessRoleArn = dataAccessRoleArn; } /** ** The Amazon Resource Name (ARN) of the IAM role that grants Amazon * Comprehend read access to trained custom models encrypted with a customer * managed key (ModelKmsKeyId). *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 20 - 2048
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param dataAccessRoleArn
* The Amazon Resource Name (ARN) of the IAM role that grants * Amazon Comprehend read access to trained custom models * encrypted with a customer managed key (ModelKmsKeyId). *
* @return A reference to this updated object so that method calls can be * chained together. */ public EndpointProperties withDataAccessRoleArn(String dataAccessRoleArn) { this.dataAccessRoleArn = dataAccessRoleArn; return this; } /** ** Data access role ARN to use in case the new model is encrypted with a * customer KMS key. *
*
* Constraints:
* Length: 20 - 2048
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @return
* Data access role ARN to use in case the new model is encrypted * with a customer KMS key. *
*/ public String getDesiredDataAccessRoleArn() { return desiredDataAccessRoleArn; } /** ** Data access role ARN to use in case the new model is encrypted with a * customer KMS key. *
*
* Constraints:
* Length: 20 - 2048
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param desiredDataAccessRoleArn
* Data access role ARN to use in case the new model is encrypted * with a customer KMS key. *
*/ public void setDesiredDataAccessRoleArn(String desiredDataAccessRoleArn) { this.desiredDataAccessRoleArn = desiredDataAccessRoleArn; } /** ** Data access role ARN to use in case the new model is encrypted with a * customer KMS key. *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: 20 - 2048
* Pattern: arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+
*
* @param desiredDataAccessRoleArn
* Data access role ARN to use in case the new model is encrypted * with a customer KMS key. *
* @return A reference to this updated object so that method calls can be * chained together. */ public EndpointProperties withDesiredDataAccessRoleArn(String desiredDataAccessRoleArn) { this.desiredDataAccessRoleArn = desiredDataAccessRoleArn; return this; } /** ** The Amazon Resource Number (ARN) of the flywheel *
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
* /[a-zA-Z0-9](-*[a-zA-Z0-9])*
*
* @return
* The Amazon Resource Number (ARN) of the flywheel *
*/ public String getFlywheelArn() { return flywheelArn; } /** ** The Amazon Resource Number (ARN) of the flywheel *
*
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
* /[a-zA-Z0-9](-*[a-zA-Z0-9])*
*
* @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 *
** Returns a reference to this object so that method calls can be chained * together. *
* Constraints:
* Length: - 256
* Pattern:
* arn:aws(-[^:]+)?:comprehend:[a-zA-Z0-9-]*:[0-9]{12}:flywheel
* /[a-zA-Z0-9](-*[a-zA-Z0-9])*
*
* @param flywheelArn
* The Amazon Resource Number (ARN) of the flywheel *
* @return A reference to this updated object so that method calls can be * chained together. */ public EndpointProperties withFlywheelArn(String flywheelArn) { this.flywheelArn = flywheelArn; return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @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: " + getEndpointArn() + ","); if (getStatus() != null) sb.append("Status: " + getStatus() + ","); if (getMessage() != null) sb.append("Message: " + getMessage() + ","); if (getModelArn() != null) sb.append("ModelArn: " + getModelArn() + ","); if (getDesiredModelArn() != null) sb.append("DesiredModelArn: " + getDesiredModelArn() + ","); if (getDesiredInferenceUnits() != null) sb.append("DesiredInferenceUnits: " + getDesiredInferenceUnits() + ","); if (getCurrentInferenceUnits() != null) sb.append("CurrentInferenceUnits: " + getCurrentInferenceUnits() + ","); if (getCreationTime() != null) sb.append("CreationTime: " + getCreationTime() + ","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: " + getLastModifiedTime() + ","); if (getDataAccessRoleArn() != null) sb.append("DataAccessRoleArn: " + getDataAccessRoleArn() + ","); if (getDesiredDataAccessRoleArn() != null) sb.append("DesiredDataAccessRoleArn: " + getDesiredDataAccessRoleArn() + ","); if (getFlywheelArn() != null) sb.append("FlywheelArn: " + getFlywheelArn()); sb.append("}"); return sb.toString(); } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndpointArn() == null) ? 0 : getEndpointArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getModelArn() == null) ? 0 : getModelArn().hashCode()); hashCode = prime * hashCode + ((getDesiredModelArn() == null) ? 0 : getDesiredModelArn().hashCode()); hashCode = prime * hashCode + ((getDesiredInferenceUnits() == null) ? 0 : getDesiredInferenceUnits().hashCode()); hashCode = prime * hashCode + ((getCurrentInferenceUnits() == null) ? 0 : getCurrentInferenceUnits().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getDataAccessRoleArn() == null) ? 0 : getDataAccessRoleArn().hashCode()); hashCode = prime * hashCode + ((getDesiredDataAccessRoleArn() == null) ? 0 : getDesiredDataAccessRoleArn() .hashCode()); hashCode = prime * hashCode + ((getFlywheelArn() == null) ? 0 : getFlywheelArn().hashCode()); return hashCode; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EndpointProperties == false) return false; EndpointProperties other = (EndpointProperties) obj; if (other.getEndpointArn() == null ^ this.getEndpointArn() == null) return false; if (other.getEndpointArn() != null && other.getEndpointArn().equals(this.getEndpointArn()) == 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.getMessage() == null ^ this.getMessage() == null) return false; if (other.getMessage() != null && other.getMessage().equals(this.getMessage()) == 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.getDesiredInferenceUnits() == null ^ this.getDesiredInferenceUnits() == null) return false; if (other.getDesiredInferenceUnits() != null && other.getDesiredInferenceUnits().equals(this.getDesiredInferenceUnits()) == false) return false; if (other.getCurrentInferenceUnits() == null ^ this.getCurrentInferenceUnits() == null) return false; if (other.getCurrentInferenceUnits() != null && other.getCurrentInferenceUnits().equals(this.getCurrentInferenceUnits()) == 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; if (other.getDataAccessRoleArn() == null ^ this.getDataAccessRoleArn() == null) return false; if (other.getDataAccessRoleArn() != null && other.getDataAccessRoleArn().equals(this.getDataAccessRoleArn()) == 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; } }