
com.amazonaws.services.applicationdiscovery.model.ExportInfo Maven / Gradle / Ivy
/*
* 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.applicationdiscovery.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Information regarding the export status of discovered data. The value is an array of objects.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ExportInfo implements Serializable, Cloneable, StructuredPojo {
/**
*
* A unique identifier used to query an export.
*
*/
private String exportId;
/**
*
* The status of the data export job.
*
*/
private String exportStatus;
/**
*
* A status message provided for API callers.
*
*/
private String statusMessage;
/**
*
* A URL for an Amazon S3 bucket where you can review the exported data. The URL is displayed only if the export
* succeeded.
*
*/
private String configurationsDownloadUrl;
/**
*
* The time that the data export was initiated.
*
*/
private java.util.Date exportRequestTime;
/**
*
* If true, the export of agent information exceeded the size limit for a single export and the exported data is
* incomplete for the requested time range. To address this, select a smaller time range for the export by using
* startDate
and endDate
.
*
*/
private Boolean isTruncated;
/**
*
* The value of startTime
parameter in the StartExportTask
request. If no
* startTime
was requested, this result does not appear in ExportInfo
.
*
*/
private java.util.Date requestedStartTime;
/**
*
* The endTime
used in the StartExportTask
request. If no endTime
was
* requested, this result does not appear in ExportInfo
.
*
*/
private java.util.Date requestedEndTime;
/**
*
* A unique identifier used to query an export.
*
*
* @param exportId
* A unique identifier used to query an export.
*/
public void setExportId(String exportId) {
this.exportId = exportId;
}
/**
*
* A unique identifier used to query an export.
*
*
* @return A unique identifier used to query an export.
*/
public String getExportId() {
return this.exportId;
}
/**
*
* A unique identifier used to query an export.
*
*
* @param exportId
* A unique identifier used to query an export.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportInfo withExportId(String exportId) {
setExportId(exportId);
return this;
}
/**
*
* The status of the data export job.
*
*
* @param exportStatus
* The status of the data export job.
* @see ExportStatus
*/
public void setExportStatus(String exportStatus) {
this.exportStatus = exportStatus;
}
/**
*
* The status of the data export job.
*
*
* @return The status of the data export job.
* @see ExportStatus
*/
public String getExportStatus() {
return this.exportStatus;
}
/**
*
* The status of the data export job.
*
*
* @param exportStatus
* The status of the data export job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ExportStatus
*/
public ExportInfo withExportStatus(String exportStatus) {
setExportStatus(exportStatus);
return this;
}
/**
*
* The status of the data export job.
*
*
* @param exportStatus
* The status of the data export job.
* @see ExportStatus
*/
public void setExportStatus(ExportStatus exportStatus) {
withExportStatus(exportStatus);
}
/**
*
* The status of the data export job.
*
*
* @param exportStatus
* The status of the data export job.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ExportStatus
*/
public ExportInfo withExportStatus(ExportStatus exportStatus) {
this.exportStatus = exportStatus.toString();
return this;
}
/**
*
* A status message provided for API callers.
*
*
* @param statusMessage
* A status message provided for API callers.
*/
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
/**
*
* A status message provided for API callers.
*
*
* @return A status message provided for API callers.
*/
public String getStatusMessage() {
return this.statusMessage;
}
/**
*
* A status message provided for API callers.
*
*
* @param statusMessage
* A status message provided for API callers.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportInfo withStatusMessage(String statusMessage) {
setStatusMessage(statusMessage);
return this;
}
/**
*
* A URL for an Amazon S3 bucket where you can review the exported data. The URL is displayed only if the export
* succeeded.
*
*
* @param configurationsDownloadUrl
* A URL for an Amazon S3 bucket where you can review the exported data. The URL is displayed only if the
* export succeeded.
*/
public void setConfigurationsDownloadUrl(String configurationsDownloadUrl) {
this.configurationsDownloadUrl = configurationsDownloadUrl;
}
/**
*
* A URL for an Amazon S3 bucket where you can review the exported data. The URL is displayed only if the export
* succeeded.
*
*
* @return A URL for an Amazon S3 bucket where you can review the exported data. The URL is displayed only if the
* export succeeded.
*/
public String getConfigurationsDownloadUrl() {
return this.configurationsDownloadUrl;
}
/**
*
* A URL for an Amazon S3 bucket where you can review the exported data. The URL is displayed only if the export
* succeeded.
*
*
* @param configurationsDownloadUrl
* A URL for an Amazon S3 bucket where you can review the exported data. The URL is displayed only if the
* export succeeded.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportInfo withConfigurationsDownloadUrl(String configurationsDownloadUrl) {
setConfigurationsDownloadUrl(configurationsDownloadUrl);
return this;
}
/**
*
* The time that the data export was initiated.
*
*
* @param exportRequestTime
* The time that the data export was initiated.
*/
public void setExportRequestTime(java.util.Date exportRequestTime) {
this.exportRequestTime = exportRequestTime;
}
/**
*
* The time that the data export was initiated.
*
*
* @return The time that the data export was initiated.
*/
public java.util.Date getExportRequestTime() {
return this.exportRequestTime;
}
/**
*
* The time that the data export was initiated.
*
*
* @param exportRequestTime
* The time that the data export was initiated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportInfo withExportRequestTime(java.util.Date exportRequestTime) {
setExportRequestTime(exportRequestTime);
return this;
}
/**
*
* If true, the export of agent information exceeded the size limit for a single export and the exported data is
* incomplete for the requested time range. To address this, select a smaller time range for the export by using
* startDate
and endDate
.
*
*
* @param isTruncated
* If true, the export of agent information exceeded the size limit for a single export and the exported data
* is incomplete for the requested time range. To address this, select a smaller time range for the export by
* using startDate
and endDate
.
*/
public void setIsTruncated(Boolean isTruncated) {
this.isTruncated = isTruncated;
}
/**
*
* If true, the export of agent information exceeded the size limit for a single export and the exported data is
* incomplete for the requested time range. To address this, select a smaller time range for the export by using
* startDate
and endDate
.
*
*
* @return If true, the export of agent information exceeded the size limit for a single export and the exported
* data is incomplete for the requested time range. To address this, select a smaller time range for the
* export by using startDate
and endDate
.
*/
public Boolean getIsTruncated() {
return this.isTruncated;
}
/**
*
* If true, the export of agent information exceeded the size limit for a single export and the exported data is
* incomplete for the requested time range. To address this, select a smaller time range for the export by using
* startDate
and endDate
.
*
*
* @param isTruncated
* If true, the export of agent information exceeded the size limit for a single export and the exported data
* is incomplete for the requested time range. To address this, select a smaller time range for the export by
* using startDate
and endDate
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportInfo withIsTruncated(Boolean isTruncated) {
setIsTruncated(isTruncated);
return this;
}
/**
*
* If true, the export of agent information exceeded the size limit for a single export and the exported data is
* incomplete for the requested time range. To address this, select a smaller time range for the export by using
* startDate
and endDate
.
*
*
* @return If true, the export of agent information exceeded the size limit for a single export and the exported
* data is incomplete for the requested time range. To address this, select a smaller time range for the
* export by using startDate
and endDate
.
*/
public Boolean isTruncated() {
return this.isTruncated;
}
/**
*
* The value of startTime
parameter in the StartExportTask
request. If no
* startTime
was requested, this result does not appear in ExportInfo
.
*
*
* @param requestedStartTime
* The value of startTime
parameter in the StartExportTask
request. If no
* startTime
was requested, this result does not appear in ExportInfo
.
*/
public void setRequestedStartTime(java.util.Date requestedStartTime) {
this.requestedStartTime = requestedStartTime;
}
/**
*
* The value of startTime
parameter in the StartExportTask
request. If no
* startTime
was requested, this result does not appear in ExportInfo
.
*
*
* @return The value of startTime
parameter in the StartExportTask
request. If no
* startTime
was requested, this result does not appear in ExportInfo
.
*/
public java.util.Date getRequestedStartTime() {
return this.requestedStartTime;
}
/**
*
* The value of startTime
parameter in the StartExportTask
request. If no
* startTime
was requested, this result does not appear in ExportInfo
.
*
*
* @param requestedStartTime
* The value of startTime
parameter in the StartExportTask
request. If no
* startTime
was requested, this result does not appear in ExportInfo
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportInfo withRequestedStartTime(java.util.Date requestedStartTime) {
setRequestedStartTime(requestedStartTime);
return this;
}
/**
*
* The endTime
used in the StartExportTask
request. If no endTime
was
* requested, this result does not appear in ExportInfo
.
*
*
* @param requestedEndTime
* The endTime
used in the StartExportTask
request. If no endTime
was
* requested, this result does not appear in ExportInfo
.
*/
public void setRequestedEndTime(java.util.Date requestedEndTime) {
this.requestedEndTime = requestedEndTime;
}
/**
*
* The endTime
used in the StartExportTask
request. If no endTime
was
* requested, this result does not appear in ExportInfo
.
*
*
* @return The endTime
used in the StartExportTask
request. If no endTime
was
* requested, this result does not appear in ExportInfo
.
*/
public java.util.Date getRequestedEndTime() {
return this.requestedEndTime;
}
/**
*
* The endTime
used in the StartExportTask
request. If no endTime
was
* requested, this result does not appear in ExportInfo
.
*
*
* @param requestedEndTime
* The endTime
used in the StartExportTask
request. If no endTime
was
* requested, this result does not appear in ExportInfo
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ExportInfo withRequestedEndTime(java.util.Date requestedEndTime) {
setRequestedEndTime(requestedEndTime);
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 (getExportId() != null)
sb.append("ExportId: ").append(getExportId()).append(",");
if (getExportStatus() != null)
sb.append("ExportStatus: ").append(getExportStatus()).append(",");
if (getStatusMessage() != null)
sb.append("StatusMessage: ").append(getStatusMessage()).append(",");
if (getConfigurationsDownloadUrl() != null)
sb.append("ConfigurationsDownloadUrl: ").append(getConfigurationsDownloadUrl()).append(",");
if (getExportRequestTime() != null)
sb.append("ExportRequestTime: ").append(getExportRequestTime()).append(",");
if (getIsTruncated() != null)
sb.append("IsTruncated: ").append(getIsTruncated()).append(",");
if (getRequestedStartTime() != null)
sb.append("RequestedStartTime: ").append(getRequestedStartTime()).append(",");
if (getRequestedEndTime() != null)
sb.append("RequestedEndTime: ").append(getRequestedEndTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ExportInfo == false)
return false;
ExportInfo other = (ExportInfo) obj;
if (other.getExportId() == null ^ this.getExportId() == null)
return false;
if (other.getExportId() != null && other.getExportId().equals(this.getExportId()) == false)
return false;
if (other.getExportStatus() == null ^ this.getExportStatus() == null)
return false;
if (other.getExportStatus() != null && other.getExportStatus().equals(this.getExportStatus()) == 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.getConfigurationsDownloadUrl() == null ^ this.getConfigurationsDownloadUrl() == null)
return false;
if (other.getConfigurationsDownloadUrl() != null && other.getConfigurationsDownloadUrl().equals(this.getConfigurationsDownloadUrl()) == false)
return false;
if (other.getExportRequestTime() == null ^ this.getExportRequestTime() == null)
return false;
if (other.getExportRequestTime() != null && other.getExportRequestTime().equals(this.getExportRequestTime()) == false)
return false;
if (other.getIsTruncated() == null ^ this.getIsTruncated() == null)
return false;
if (other.getIsTruncated() != null && other.getIsTruncated().equals(this.getIsTruncated()) == false)
return false;
if (other.getRequestedStartTime() == null ^ this.getRequestedStartTime() == null)
return false;
if (other.getRequestedStartTime() != null && other.getRequestedStartTime().equals(this.getRequestedStartTime()) == false)
return false;
if (other.getRequestedEndTime() == null ^ this.getRequestedEndTime() == null)
return false;
if (other.getRequestedEndTime() != null && other.getRequestedEndTime().equals(this.getRequestedEndTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getExportId() == null) ? 0 : getExportId().hashCode());
hashCode = prime * hashCode + ((getExportStatus() == null) ? 0 : getExportStatus().hashCode());
hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode());
hashCode = prime * hashCode + ((getConfigurationsDownloadUrl() == null) ? 0 : getConfigurationsDownloadUrl().hashCode());
hashCode = prime * hashCode + ((getExportRequestTime() == null) ? 0 : getExportRequestTime().hashCode());
hashCode = prime * hashCode + ((getIsTruncated() == null) ? 0 : getIsTruncated().hashCode());
hashCode = prime * hashCode + ((getRequestedStartTime() == null) ? 0 : getRequestedStartTime().hashCode());
hashCode = prime * hashCode + ((getRequestedEndTime() == null) ? 0 : getRequestedEndTime().hashCode());
return hashCode;
}
@Override
public ExportInfo clone() {
try {
return (ExportInfo) 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.applicationdiscovery.model.transform.ExportInfoMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}