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

com.amazonaws.services.datasync.model.DescribeDiscoveryJobResult Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
Show 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.datasync.model;

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

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

    /**
     * 

* The ARN of the on-premises storage system you're running the discovery job on. *

*/ private String storageSystemArn; /** *

* The ARN of the discovery job. *

*/ private String discoveryJobArn; /** *

* The number of minutes that the discovery job runs. *

*/ private Integer collectionDurationMinutes; /** *

* Indicates the status of a discovery job. For more information, see Discovery job statuses. *

*/ private String status; /** *

* The time when the discovery job started. *

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

* The time when the discovery job ended. *

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

* The ARN of the on-premises storage system you're running the discovery job on. *

* * @param storageSystemArn * The ARN of the on-premises storage system you're running the discovery job on. */ public void setStorageSystemArn(String storageSystemArn) { this.storageSystemArn = storageSystemArn; } /** *

* The ARN of the on-premises storage system you're running the discovery job on. *

* * @return The ARN of the on-premises storage system you're running the discovery job on. */ public String getStorageSystemArn() { return this.storageSystemArn; } /** *

* The ARN of the on-premises storage system you're running the discovery job on. *

* * @param storageSystemArn * The ARN of the on-premises storage system you're running the discovery job on. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDiscoveryJobResult withStorageSystemArn(String storageSystemArn) { setStorageSystemArn(storageSystemArn); return this; } /** *

* The ARN of the discovery job. *

* * @param discoveryJobArn * The ARN of the discovery job. */ public void setDiscoveryJobArn(String discoveryJobArn) { this.discoveryJobArn = discoveryJobArn; } /** *

* The ARN of the discovery job. *

* * @return The ARN of the discovery job. */ public String getDiscoveryJobArn() { return this.discoveryJobArn; } /** *

* The ARN of the discovery job. *

* * @param discoveryJobArn * The ARN of the discovery job. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDiscoveryJobResult withDiscoveryJobArn(String discoveryJobArn) { setDiscoveryJobArn(discoveryJobArn); return this; } /** *

* The number of minutes that the discovery job runs. *

* * @param collectionDurationMinutes * The number of minutes that the discovery job runs. */ public void setCollectionDurationMinutes(Integer collectionDurationMinutes) { this.collectionDurationMinutes = collectionDurationMinutes; } /** *

* The number of minutes that the discovery job runs. *

* * @return The number of minutes that the discovery job runs. */ public Integer getCollectionDurationMinutes() { return this.collectionDurationMinutes; } /** *

* The number of minutes that the discovery job runs. *

* * @param collectionDurationMinutes * The number of minutes that the discovery job runs. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDiscoveryJobResult withCollectionDurationMinutes(Integer collectionDurationMinutes) { setCollectionDurationMinutes(collectionDurationMinutes); return this; } /** *

* Indicates the status of a discovery job. For more information, see Discovery job statuses. *

* * @param status * Indicates the status of a discovery job. For more information, see Discovery job statuses. * @see DiscoveryJobStatus */ public void setStatus(String status) { this.status = status; } /** *

* Indicates the status of a discovery job. For more information, see Discovery job statuses. *

* * @return Indicates the status of a discovery job. For more information, see Discovery job statuses. * @see DiscoveryJobStatus */ public String getStatus() { return this.status; } /** *

* Indicates the status of a discovery job. For more information, see Discovery job statuses. *

* * @param status * Indicates the status of a discovery job. For more information, see Discovery job statuses. * @return Returns a reference to this object so that method calls can be chained together. * @see DiscoveryJobStatus */ public DescribeDiscoveryJobResult withStatus(String status) { setStatus(status); return this; } /** *

* Indicates the status of a discovery job. For more information, see Discovery job statuses. *

* * @param status * Indicates the status of a discovery job. For more information, see Discovery job statuses. * @return Returns a reference to this object so that method calls can be chained together. * @see DiscoveryJobStatus */ public DescribeDiscoveryJobResult withStatus(DiscoveryJobStatus status) { this.status = status.toString(); return this; } /** *

* The time when the discovery job started. *

* * @param jobStartTime * The time when the discovery job started. */ public void setJobStartTime(java.util.Date jobStartTime) { this.jobStartTime = jobStartTime; } /** *

* The time when the discovery job started. *

* * @return The time when the discovery job started. */ public java.util.Date getJobStartTime() { return this.jobStartTime; } /** *

* The time when the discovery job started. *

* * @param jobStartTime * The time when the discovery job started. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDiscoveryJobResult withJobStartTime(java.util.Date jobStartTime) { setJobStartTime(jobStartTime); return this; } /** *

* The time when the discovery job ended. *

* * @param jobEndTime * The time when the discovery job ended. */ public void setJobEndTime(java.util.Date jobEndTime) { this.jobEndTime = jobEndTime; } /** *

* The time when the discovery job ended. *

* * @return The time when the discovery job ended. */ public java.util.Date getJobEndTime() { return this.jobEndTime; } /** *

* The time when the discovery job ended. *

* * @param jobEndTime * The time when the discovery job ended. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeDiscoveryJobResult withJobEndTime(java.util.Date jobEndTime) { setJobEndTime(jobEndTime); 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 (getStorageSystemArn() != null) sb.append("StorageSystemArn: ").append(getStorageSystemArn()).append(","); if (getDiscoveryJobArn() != null) sb.append("DiscoveryJobArn: ").append(getDiscoveryJobArn()).append(","); if (getCollectionDurationMinutes() != null) sb.append("CollectionDurationMinutes: ").append(getCollectionDurationMinutes()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getJobStartTime() != null) sb.append("JobStartTime: ").append(getJobStartTime()).append(","); if (getJobEndTime() != null) sb.append("JobEndTime: ").append(getJobEndTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeDiscoveryJobResult == false) return false; DescribeDiscoveryJobResult other = (DescribeDiscoveryJobResult) obj; if (other.getStorageSystemArn() == null ^ this.getStorageSystemArn() == null) return false; if (other.getStorageSystemArn() != null && other.getStorageSystemArn().equals(this.getStorageSystemArn()) == false) return false; if (other.getDiscoveryJobArn() == null ^ this.getDiscoveryJobArn() == null) return false; if (other.getDiscoveryJobArn() != null && other.getDiscoveryJobArn().equals(this.getDiscoveryJobArn()) == false) return false; if (other.getCollectionDurationMinutes() == null ^ this.getCollectionDurationMinutes() == null) return false; if (other.getCollectionDurationMinutes() != null && other.getCollectionDurationMinutes().equals(this.getCollectionDurationMinutes()) == 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.getJobStartTime() == null ^ this.getJobStartTime() == null) return false; if (other.getJobStartTime() != null && other.getJobStartTime().equals(this.getJobStartTime()) == false) return false; if (other.getJobEndTime() == null ^ this.getJobEndTime() == null) return false; if (other.getJobEndTime() != null && other.getJobEndTime().equals(this.getJobEndTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStorageSystemArn() == null) ? 0 : getStorageSystemArn().hashCode()); hashCode = prime * hashCode + ((getDiscoveryJobArn() == null) ? 0 : getDiscoveryJobArn().hashCode()); hashCode = prime * hashCode + ((getCollectionDurationMinutes() == null) ? 0 : getCollectionDurationMinutes().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getJobStartTime() == null) ? 0 : getJobStartTime().hashCode()); hashCode = prime * hashCode + ((getJobEndTime() == null) ? 0 : getJobEndTime().hashCode()); return hashCode; } @Override public DescribeDiscoveryJobResult clone() { try { return (DescribeDiscoveryJobResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy