* ID of the license type conversion task. *
*/ private String licenseConversionTaskId; /** ** Amazon Resource Names (ARN) of the resources the license conversion task is associated with. *
*/ private String resourceArn; /** ** Information about the license type converted from. *
*/ private LicenseConversionContext sourceLicenseContext; /** ** Information about the license type converted to. *
*/ private LicenseConversionContext destinationLicenseContext; /** ** The status message for the conversion task. *
*/ private String statusMessage; /** ** Status of the license type conversion task. *
*/ private String status; /** ** Time at which the license type conversion task was started . *
*/ private java.util.Date startTime; /** ** Amount of time to complete the license type conversion. *
*/ private java.util.Date licenseConversionTime; /** ** Time at which the license type conversion task was completed. *
*/ private java.util.Date endTime; /** ** ID of the license type conversion task. *
* * @param licenseConversionTaskId * ID of the license type conversion task. */ public void setLicenseConversionTaskId(String licenseConversionTaskId) { this.licenseConversionTaskId = licenseConversionTaskId; } /** ** ID of the license type conversion task. *
* * @return ID of the license type conversion task. */ public String getLicenseConversionTaskId() { return this.licenseConversionTaskId; } /** ** ID of the license type conversion task. *
* * @param licenseConversionTaskId * ID of the license type conversion task. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLicenseConversionTaskResult withLicenseConversionTaskId(String licenseConversionTaskId) { setLicenseConversionTaskId(licenseConversionTaskId); return this; } /** ** Amazon Resource Names (ARN) of the resources the license conversion task is associated with. *
* * @param resourceArn * Amazon Resource Names (ARN) of the resources the license conversion task is associated with. */ public void setResourceArn(String resourceArn) { this.resourceArn = resourceArn; } /** ** Amazon Resource Names (ARN) of the resources the license conversion task is associated with. *
* * @return Amazon Resource Names (ARN) of the resources the license conversion task is associated with. */ public String getResourceArn() { return this.resourceArn; } /** ** Amazon Resource Names (ARN) of the resources the license conversion task is associated with. *
* * @param resourceArn * Amazon Resource Names (ARN) of the resources the license conversion task is associated with. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLicenseConversionTaskResult withResourceArn(String resourceArn) { setResourceArn(resourceArn); return this; } /** ** Information about the license type converted from. *
* * @param sourceLicenseContext * Information about the license type converted from. */ public void setSourceLicenseContext(LicenseConversionContext sourceLicenseContext) { this.sourceLicenseContext = sourceLicenseContext; } /** ** Information about the license type converted from. *
* * @return Information about the license type converted from. */ public LicenseConversionContext getSourceLicenseContext() { return this.sourceLicenseContext; } /** ** Information about the license type converted from. *
* * @param sourceLicenseContext * Information about the license type converted from. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLicenseConversionTaskResult withSourceLicenseContext(LicenseConversionContext sourceLicenseContext) { setSourceLicenseContext(sourceLicenseContext); return this; } /** ** Information about the license type converted to. *
* * @param destinationLicenseContext * Information about the license type converted to. */ public void setDestinationLicenseContext(LicenseConversionContext destinationLicenseContext) { this.destinationLicenseContext = destinationLicenseContext; } /** ** Information about the license type converted to. *
* * @return Information about the license type converted to. */ public LicenseConversionContext getDestinationLicenseContext() { return this.destinationLicenseContext; } /** ** Information about the license type converted to. *
* * @param destinationLicenseContext * Information about the license type converted to. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLicenseConversionTaskResult withDestinationLicenseContext(LicenseConversionContext destinationLicenseContext) { setDestinationLicenseContext(destinationLicenseContext); return this; } /** ** The status message for the conversion task. *
* * @param statusMessage * The status message for the conversion task. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** ** The status message for the conversion task. *
* * @return The status message for the conversion task. */ public String getStatusMessage() { return this.statusMessage; } /** ** The status message for the conversion task. *
* * @param statusMessage * The status message for the conversion task. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLicenseConversionTaskResult withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; } /** ** Status of the license type conversion task. *
* * @param status * Status of the license type conversion task. * @see LicenseConversionTaskStatus */ public void setStatus(String status) { this.status = status; } /** ** Status of the license type conversion task. *
* * @return Status of the license type conversion task. * @see LicenseConversionTaskStatus */ public String getStatus() { return this.status; } /** ** Status of the license type conversion task. *
* * @param status * Status of the license type conversion task. * @return Returns a reference to this object so that method calls can be chained together. * @see LicenseConversionTaskStatus */ public GetLicenseConversionTaskResult withStatus(String status) { setStatus(status); return this; } /** ** Status of the license type conversion task. *
* * @param status * Status of the license type conversion task. * @return Returns a reference to this object so that method calls can be chained together. * @see LicenseConversionTaskStatus */ public GetLicenseConversionTaskResult withStatus(LicenseConversionTaskStatus status) { this.status = status.toString(); return this; } /** ** Time at which the license type conversion task was started . *
* * @param startTime * Time at which the license type conversion task was started . */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** ** Time at which the license type conversion task was started . *
* * @return Time at which the license type conversion task was started . */ public java.util.Date getStartTime() { return this.startTime; } /** ** Time at which the license type conversion task was started . *
* * @param startTime * Time at which the license type conversion task was started . * @return Returns a reference to this object so that method calls can be chained together. */ public GetLicenseConversionTaskResult withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** ** Amount of time to complete the license type conversion. *
* * @param licenseConversionTime * Amount of time to complete the license type conversion. */ public void setLicenseConversionTime(java.util.Date licenseConversionTime) { this.licenseConversionTime = licenseConversionTime; } /** ** Amount of time to complete the license type conversion. *
* * @return Amount of time to complete the license type conversion. */ public java.util.Date getLicenseConversionTime() { return this.licenseConversionTime; } /** ** Amount of time to complete the license type conversion. *
* * @param licenseConversionTime * Amount of time to complete the license type conversion. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLicenseConversionTaskResult withLicenseConversionTime(java.util.Date licenseConversionTime) { setLicenseConversionTime(licenseConversionTime); return this; } /** ** Time at which the license type conversion task was completed. *
* * @param endTime * Time at which the license type conversion task was completed. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** ** Time at which the license type conversion task was completed. *
* * @return Time at which the license type conversion task was completed. */ public java.util.Date getEndTime() { return this.endTime; } /** ** Time at which the license type conversion task was completed. *
* * @param endTime * Time at which the license type conversion task was completed. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLicenseConversionTaskResult withEndTime(java.util.Date endTime) { setEndTime(endTime); 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 (getLicenseConversionTaskId() != null) sb.append("LicenseConversionTaskId: ").append(getLicenseConversionTaskId()).append(","); if (getResourceArn() != null) sb.append("ResourceArn: ").append(getResourceArn()).append(","); if (getSourceLicenseContext() != null) sb.append("SourceLicenseContext: ").append(getSourceLicenseContext()).append(","); if (getDestinationLicenseContext() != null) sb.append("DestinationLicenseContext: ").append(getDestinationLicenseContext()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getLicenseConversionTime() != null) sb.append("LicenseConversionTime: ").append(getLicenseConversionTime()).append(","); if (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetLicenseConversionTaskResult == false) return false; GetLicenseConversionTaskResult other = (GetLicenseConversionTaskResult) obj; if (other.getLicenseConversionTaskId() == null ^ this.getLicenseConversionTaskId() == null) return false; if (other.getLicenseConversionTaskId() != null && other.getLicenseConversionTaskId().equals(this.getLicenseConversionTaskId()) == false) return false; if (other.getResourceArn() == null ^ this.getResourceArn() == null) return false; if (other.getResourceArn() != null && other.getResourceArn().equals(this.getResourceArn()) == false) return false; if (other.getSourceLicenseContext() == null ^ this.getSourceLicenseContext() == null) return false; if (other.getSourceLicenseContext() != null && other.getSourceLicenseContext().equals(this.getSourceLicenseContext()) == false) return false; if (other.getDestinationLicenseContext() == null ^ this.getDestinationLicenseContext() == null) return false; if (other.getDestinationLicenseContext() != null && other.getDestinationLicenseContext().equals(this.getDestinationLicenseContext()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == 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.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getLicenseConversionTime() == null ^ this.getLicenseConversionTime() == null) return false; if (other.getLicenseConversionTime() != null && other.getLicenseConversionTime().equals(this.getLicenseConversionTime()) == false) return false; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getLicenseConversionTaskId() == null) ? 0 : getLicenseConversionTaskId().hashCode()); hashCode = prime * hashCode + ((getResourceArn() == null) ? 0 : getResourceArn().hashCode()); hashCode = prime * hashCode + ((getSourceLicenseContext() == null) ? 0 : getSourceLicenseContext().hashCode()); hashCode = prime * hashCode + ((getDestinationLicenseContext() == null) ? 0 : getDestinationLicenseContext().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getLicenseConversionTime() == null) ? 0 : getLicenseConversionTime().hashCode()); hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); return hashCode; } @Override public GetLicenseConversionTaskResult clone() { try { return (GetLicenseConversionTaskResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }