com.amazonaws.services.medicalimaging.model.GetImageSetResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-medicalimaging Show documentation
/*
* 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.medicalimaging.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class GetImageSetResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The data store identifier.
*
*/
private String datastoreId;
/**
*
* The image set identifier.
*
*/
private String imageSetId;
/**
*
* The image set version identifier.
*
*/
private String versionId;
/**
*
* The image set state.
*
*/
private String imageSetState;
/**
*
* The image set workflow status.
*
*/
private String imageSetWorkflowStatus;
/**
*
* The timestamp when image set properties were created.
*
*/
private java.util.Date createdAt;
/**
*
* The timestamp when image set properties were updated.
*
*/
private java.util.Date updatedAt;
/**
*
* The timestamp when the image set properties were deleted.
*
*/
private java.util.Date deletedAt;
/**
*
* The error message thrown if an image set action fails.
*
*/
private String message;
/**
*
* The Amazon Resource Name (ARN) assigned to the image set.
*
*/
private String imageSetArn;
/**
*
* The data store identifier.
*
*
* @param datastoreId
* The data store identifier.
*/
public void setDatastoreId(String datastoreId) {
this.datastoreId = datastoreId;
}
/**
*
* The data store identifier.
*
*
* @return The data store identifier.
*/
public String getDatastoreId() {
return this.datastoreId;
}
/**
*
* The data store identifier.
*
*
* @param datastoreId
* The data store identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImageSetResult withDatastoreId(String datastoreId) {
setDatastoreId(datastoreId);
return this;
}
/**
*
* The image set identifier.
*
*
* @param imageSetId
* The image set identifier.
*/
public void setImageSetId(String imageSetId) {
this.imageSetId = imageSetId;
}
/**
*
* The image set identifier.
*
*
* @return The image set identifier.
*/
public String getImageSetId() {
return this.imageSetId;
}
/**
*
* The image set identifier.
*
*
* @param imageSetId
* The image set identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImageSetResult withImageSetId(String imageSetId) {
setImageSetId(imageSetId);
return this;
}
/**
*
* The image set version identifier.
*
*
* @param versionId
* The image set version identifier.
*/
public void setVersionId(String versionId) {
this.versionId = versionId;
}
/**
*
* The image set version identifier.
*
*
* @return The image set version identifier.
*/
public String getVersionId() {
return this.versionId;
}
/**
*
* The image set version identifier.
*
*
* @param versionId
* The image set version identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImageSetResult withVersionId(String versionId) {
setVersionId(versionId);
return this;
}
/**
*
* The image set state.
*
*
* @param imageSetState
* The image set state.
* @see ImageSetState
*/
public void setImageSetState(String imageSetState) {
this.imageSetState = imageSetState;
}
/**
*
* The image set state.
*
*
* @return The image set state.
* @see ImageSetState
*/
public String getImageSetState() {
return this.imageSetState;
}
/**
*
* The image set state.
*
*
* @param imageSetState
* The image set state.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ImageSetState
*/
public GetImageSetResult withImageSetState(String imageSetState) {
setImageSetState(imageSetState);
return this;
}
/**
*
* The image set state.
*
*
* @param imageSetState
* The image set state.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ImageSetState
*/
public GetImageSetResult withImageSetState(ImageSetState imageSetState) {
this.imageSetState = imageSetState.toString();
return this;
}
/**
*
* The image set workflow status.
*
*
* @param imageSetWorkflowStatus
* The image set workflow status.
* @see ImageSetWorkflowStatus
*/
public void setImageSetWorkflowStatus(String imageSetWorkflowStatus) {
this.imageSetWorkflowStatus = imageSetWorkflowStatus;
}
/**
*
* The image set workflow status.
*
*
* @return The image set workflow status.
* @see ImageSetWorkflowStatus
*/
public String getImageSetWorkflowStatus() {
return this.imageSetWorkflowStatus;
}
/**
*
* The image set workflow status.
*
*
* @param imageSetWorkflowStatus
* The image set workflow status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ImageSetWorkflowStatus
*/
public GetImageSetResult withImageSetWorkflowStatus(String imageSetWorkflowStatus) {
setImageSetWorkflowStatus(imageSetWorkflowStatus);
return this;
}
/**
*
* The image set workflow status.
*
*
* @param imageSetWorkflowStatus
* The image set workflow status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ImageSetWorkflowStatus
*/
public GetImageSetResult withImageSetWorkflowStatus(ImageSetWorkflowStatus imageSetWorkflowStatus) {
this.imageSetWorkflowStatus = imageSetWorkflowStatus.toString();
return this;
}
/**
*
* The timestamp when image set properties were created.
*
*
* @param createdAt
* The timestamp when image set properties were created.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* The timestamp when image set properties were created.
*
*
* @return The timestamp when image set properties were created.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* The timestamp when image set properties were created.
*
*
* @param createdAt
* The timestamp when image set properties were created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImageSetResult withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* The timestamp when image set properties were updated.
*
*
* @param updatedAt
* The timestamp when image set properties were updated.
*/
public void setUpdatedAt(java.util.Date updatedAt) {
this.updatedAt = updatedAt;
}
/**
*
* The timestamp when image set properties were updated.
*
*
* @return The timestamp when image set properties were updated.
*/
public java.util.Date getUpdatedAt() {
return this.updatedAt;
}
/**
*
* The timestamp when image set properties were updated.
*
*
* @param updatedAt
* The timestamp when image set properties were updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImageSetResult withUpdatedAt(java.util.Date updatedAt) {
setUpdatedAt(updatedAt);
return this;
}
/**
*
* The timestamp when the image set properties were deleted.
*
*
* @param deletedAt
* The timestamp when the image set properties were deleted.
*/
public void setDeletedAt(java.util.Date deletedAt) {
this.deletedAt = deletedAt;
}
/**
*
* The timestamp when the image set properties were deleted.
*
*
* @return The timestamp when the image set properties were deleted.
*/
public java.util.Date getDeletedAt() {
return this.deletedAt;
}
/**
*
* The timestamp when the image set properties were deleted.
*
*
* @param deletedAt
* The timestamp when the image set properties were deleted.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImageSetResult withDeletedAt(java.util.Date deletedAt) {
setDeletedAt(deletedAt);
return this;
}
/**
*
* The error message thrown if an image set action fails.
*
*
* @param message
* The error message thrown if an image set action fails.
*/
public void setMessage(String message) {
this.message = message;
}
/**
*
* The error message thrown if an image set action fails.
*
*
* @return The error message thrown if an image set action fails.
*/
public String getMessage() {
return this.message;
}
/**
*
* The error message thrown if an image set action fails.
*
*
* @param message
* The error message thrown if an image set action fails.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImageSetResult withMessage(String message) {
setMessage(message);
return this;
}
/**
*
* The Amazon Resource Name (ARN) assigned to the image set.
*
*
* @param imageSetArn
* The Amazon Resource Name (ARN) assigned to the image set.
*/
public void setImageSetArn(String imageSetArn) {
this.imageSetArn = imageSetArn;
}
/**
*
* The Amazon Resource Name (ARN) assigned to the image set.
*
*
* @return The Amazon Resource Name (ARN) assigned to the image set.
*/
public String getImageSetArn() {
return this.imageSetArn;
}
/**
*
* The Amazon Resource Name (ARN) assigned to the image set.
*
*
* @param imageSetArn
* The Amazon Resource Name (ARN) assigned to the image set.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImageSetResult withImageSetArn(String imageSetArn) {
setImageSetArn(imageSetArn);
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 (getDatastoreId() != null)
sb.append("DatastoreId: ").append(getDatastoreId()).append(",");
if (getImageSetId() != null)
sb.append("ImageSetId: ").append(getImageSetId()).append(",");
if (getVersionId() != null)
sb.append("VersionId: ").append(getVersionId()).append(",");
if (getImageSetState() != null)
sb.append("ImageSetState: ").append(getImageSetState()).append(",");
if (getImageSetWorkflowStatus() != null)
sb.append("ImageSetWorkflowStatus: ").append(getImageSetWorkflowStatus()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getUpdatedAt() != null)
sb.append("UpdatedAt: ").append(getUpdatedAt()).append(",");
if (getDeletedAt() != null)
sb.append("DeletedAt: ").append(getDeletedAt()).append(",");
if (getMessage() != null)
sb.append("Message: ").append(getMessage()).append(",");
if (getImageSetArn() != null)
sb.append("ImageSetArn: ").append(getImageSetArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetImageSetResult == false)
return false;
GetImageSetResult other = (GetImageSetResult) obj;
if (other.getDatastoreId() == null ^ this.getDatastoreId() == null)
return false;
if (other.getDatastoreId() != null && other.getDatastoreId().equals(this.getDatastoreId()) == false)
return false;
if (other.getImageSetId() == null ^ this.getImageSetId() == null)
return false;
if (other.getImageSetId() != null && other.getImageSetId().equals(this.getImageSetId()) == false)
return false;
if (other.getVersionId() == null ^ this.getVersionId() == null)
return false;
if (other.getVersionId() != null && other.getVersionId().equals(this.getVersionId()) == false)
return false;
if (other.getImageSetState() == null ^ this.getImageSetState() == null)
return false;
if (other.getImageSetState() != null && other.getImageSetState().equals(this.getImageSetState()) == false)
return false;
if (other.getImageSetWorkflowStatus() == null ^ this.getImageSetWorkflowStatus() == null)
return false;
if (other.getImageSetWorkflowStatus() != null && other.getImageSetWorkflowStatus().equals(this.getImageSetWorkflowStatus()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null)
return false;
if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false)
return false;
if (other.getDeletedAt() == null ^ this.getDeletedAt() == null)
return false;
if (other.getDeletedAt() != null && other.getDeletedAt().equals(this.getDeletedAt()) == 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.getImageSetArn() == null ^ this.getImageSetArn() == null)
return false;
if (other.getImageSetArn() != null && other.getImageSetArn().equals(this.getImageSetArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDatastoreId() == null) ? 0 : getDatastoreId().hashCode());
hashCode = prime * hashCode + ((getImageSetId() == null) ? 0 : getImageSetId().hashCode());
hashCode = prime * hashCode + ((getVersionId() == null) ? 0 : getVersionId().hashCode());
hashCode = prime * hashCode + ((getImageSetState() == null) ? 0 : getImageSetState().hashCode());
hashCode = prime * hashCode + ((getImageSetWorkflowStatus() == null) ? 0 : getImageSetWorkflowStatus().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
hashCode = prime * hashCode + ((getDeletedAt() == null) ? 0 : getDeletedAt().hashCode());
hashCode = prime * hashCode + ((getMessage() == null) ? 0 : getMessage().hashCode());
hashCode = prime * hashCode + ((getImageSetArn() == null) ? 0 : getImageSetArn().hashCode());
return hashCode;
}
@Override
public GetImageSetResult clone() {
try {
return (GetImageSetResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}