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

com.amazonaws.services.comprehend.model.FlywheelSummary 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Flywheel summary information. *

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

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

*/ private String flywheelArn; /** *

* ARN of the active model version for the flywheel. *

*/ private String activeModelArn; /** *

* Amazon S3 URI of the data lake location. *

*/ private String dataLakeS3Uri; /** *

* The status of the flywheel. *

*/ private String status; /** *

* Model type of the flywheel's model. *

*/ private String modelType; /** *

* A description of the status of the flywheel. *

*/ private String message; /** *

* Creation time of the flywheel. *

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

* Last modified time for the flywheel. *

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

* The most recent flywheel iteration. *

*/ private String latestFlywheelIteration; /** *

* 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 FlywheelSummary withFlywheelArn(String flywheelArn) { setFlywheelArn(flywheelArn); return this; } /** *

* ARN of the active model version for the flywheel. *

* * @param activeModelArn * ARN of the active model version for the flywheel. */ public void setActiveModelArn(String activeModelArn) { this.activeModelArn = activeModelArn; } /** *

* ARN of the active model version for the flywheel. *

* * @return ARN of the active model version for the flywheel. */ public String getActiveModelArn() { return this.activeModelArn; } /** *

* ARN of the active model version for the flywheel. *

* * @param activeModelArn * ARN of the active model version for the flywheel. * @return Returns a reference to this object so that method calls can be chained together. */ public FlywheelSummary withActiveModelArn(String activeModelArn) { setActiveModelArn(activeModelArn); return this; } /** *

* Amazon S3 URI of the data lake location. *

* * @param dataLakeS3Uri * Amazon S3 URI of the data lake location. */ public void setDataLakeS3Uri(String dataLakeS3Uri) { this.dataLakeS3Uri = dataLakeS3Uri; } /** *

* Amazon S3 URI of the data lake location. *

* * @return Amazon S3 URI of the data lake location. */ public String getDataLakeS3Uri() { return this.dataLakeS3Uri; } /** *

* Amazon S3 URI of the data lake location. *

* * @param dataLakeS3Uri * Amazon S3 URI of the data lake location. * @return Returns a reference to this object so that method calls can be chained together. */ public FlywheelSummary withDataLakeS3Uri(String dataLakeS3Uri) { setDataLakeS3Uri(dataLakeS3Uri); return this; } /** *

* The status of the flywheel. *

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

* The status of the flywheel. *

* * @return The status of the flywheel. * @see FlywheelStatus */ public String getStatus() { return this.status; } /** *

* The status of the flywheel. *

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

* The status of the flywheel. *

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

* Model type of the flywheel's model. *

* * @param modelType * Model type of the flywheel's model. * @see ModelType */ public void setModelType(String modelType) { this.modelType = modelType; } /** *

* Model type of the flywheel's model. *

* * @return Model type of the flywheel's model. * @see ModelType */ public String getModelType() { return this.modelType; } /** *

* Model type of the flywheel's model. *

* * @param modelType * Model type of the flywheel's model. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelType */ public FlywheelSummary withModelType(String modelType) { setModelType(modelType); return this; } /** *

* Model type of the flywheel's model. *

* * @param modelType * Model type of the flywheel's model. * @return Returns a reference to this object so that method calls can be chained together. * @see ModelType */ public FlywheelSummary withModelType(ModelType modelType) { this.modelType = modelType.toString(); return this; } /** *

* A description of the status of the flywheel. *

* * @param message * A description of the status of the flywheel. */ public void setMessage(String message) { this.message = message; } /** *

* A description of the status of the flywheel. *

* * @return A description of the status of the flywheel. */ public String getMessage() { return this.message; } /** *

* A description of the status of the flywheel. *

* * @param message * A description of the status of the flywheel. * @return Returns a reference to this object so that method calls can be chained together. */ public FlywheelSummary withMessage(String message) { setMessage(message); return this; } /** *

* Creation time of the flywheel. *

* * @param creationTime * Creation time of the flywheel. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* Creation time of the flywheel. *

* * @return Creation time of the flywheel. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* Creation time of the flywheel. *

* * @param creationTime * Creation time of the flywheel. * @return Returns a reference to this object so that method calls can be chained together. */ public FlywheelSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* Last modified time for the flywheel. *

* * @param lastModifiedTime * Last modified time for the flywheel. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* Last modified time for the flywheel. *

* * @return Last modified time for the flywheel. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** *

* Last modified time for the flywheel. *

* * @param lastModifiedTime * Last modified time for the flywheel. * @return Returns a reference to this object so that method calls can be chained together. */ public FlywheelSummary withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** *

* The most recent flywheel iteration. *

* * @param latestFlywheelIteration * The most recent flywheel iteration. */ public void setLatestFlywheelIteration(String latestFlywheelIteration) { this.latestFlywheelIteration = latestFlywheelIteration; } /** *

* The most recent flywheel iteration. *

* * @return The most recent flywheel iteration. */ public String getLatestFlywheelIteration() { return this.latestFlywheelIteration; } /** *

* The most recent flywheel iteration. *

* * @param latestFlywheelIteration * The most recent flywheel iteration. * @return Returns a reference to this object so that method calls can be chained together. */ public FlywheelSummary withLatestFlywheelIteration(String latestFlywheelIteration) { setLatestFlywheelIteration(latestFlywheelIteration); 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 (getFlywheelArn() != null) sb.append("FlywheelArn: ").append(getFlywheelArn()).append(","); if (getActiveModelArn() != null) sb.append("ActiveModelArn: ").append(getActiveModelArn()).append(","); if (getDataLakeS3Uri() != null) sb.append("DataLakeS3Uri: ").append(getDataLakeS3Uri()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getModelType() != null) sb.append("ModelType: ").append(getModelType()).append(","); if (getMessage() != null) sb.append("Message: ").append(getMessage()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getLatestFlywheelIteration() != null) sb.append("LatestFlywheelIteration: ").append(getLatestFlywheelIteration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FlywheelSummary == false) return false; FlywheelSummary other = (FlywheelSummary) obj; if (other.getFlywheelArn() == null ^ this.getFlywheelArn() == null) return false; if (other.getFlywheelArn() != null && other.getFlywheelArn().equals(this.getFlywheelArn()) == false) return false; if (other.getActiveModelArn() == null ^ this.getActiveModelArn() == null) return false; if (other.getActiveModelArn() != null && other.getActiveModelArn().equals(this.getActiveModelArn()) == false) return false; if (other.getDataLakeS3Uri() == null ^ this.getDataLakeS3Uri() == null) return false; if (other.getDataLakeS3Uri() != null && other.getDataLakeS3Uri().equals(this.getDataLakeS3Uri()) == 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.getModelType() == null ^ this.getModelType() == null) return false; if (other.getModelType() != null && other.getModelType().equals(this.getModelType()) == 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.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.getLatestFlywheelIteration() == null ^ this.getLatestFlywheelIteration() == null) return false; if (other.getLatestFlywheelIteration() != null && other.getLatestFlywheelIteration().equals(this.getLatestFlywheelIteration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFlywheelArn() == null) ? 0 : getFlywheelArn().hashCode()); hashCode = prime * hashCode + ((getActiveModelArn() == null) ? 0 : getActiveModelArn().hashCode()); hashCode = prime * hashCode + ((getDataLakeS3Uri() == null) ? 0 : getDataLakeS3Uri().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getModelType() == null) ? 0 : getModelType().hashCode()); hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getLatestFlywheelIteration() == null) ? 0 : getLatestFlywheelIteration().hashCode()); return hashCode; } @Override public FlywheelSummary clone() { try { return (FlywheelSummary) 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.comprehend.model.transform.FlywheelSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy