* The ID of the import. *
*/ private String importId; /** ** The ARN of the destination event data store. *
*/ private com.amazonaws.internal.SdkInternalList* The source S3 bucket. *
*/ private ImportSource importSource; /** *
* Used with EndEventTime
to bound a StartImport
request, and limit imported trail events
* to only those events logged within a specified time period.
*
* Used with StartEventTime
to bound a StartImport
request, and limit imported trail
* events to only those events logged within a specified time period.
*
* The status of the import. *
*/ private String importStatus; /** ** The timestamp of the import's creation. *
*/ private java.util.Date createdTimestamp; /** ** The timestamp of when the import was updated. *
*/ private java.util.Date updatedTimestamp; /** *
* Provides statistics for the import. CloudTrail does not update import statistics in real-time. Returned values
* for parameters such as EventsCompleted
may be lower than the actual value, because CloudTrail
* updates statistics incrementally over the course of the import.
*
* The ID of the import. *
* * @param importId * The ID of the import. */ public void setImportId(String importId) { this.importId = importId; } /** ** The ID of the import. *
* * @return The ID of the import. */ public String getImportId() { return this.importId; } /** ** The ID of the import. *
* * @param importId * The ID of the import. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImportResult withImportId(String importId) { setImportId(importId); return this; } /** ** The ARN of the destination event data store. *
* * @return The ARN of the destination event data store. */ public java.util.List* The ARN of the destination event data store. *
* * @param destinations * The ARN of the destination event data store. */ public void setDestinations(java.util.Collection* The ARN of the destination event data store. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDestinations(java.util.Collection)} or {@link #withDestinations(java.util.Collection)} if you want to * override the existing values. *
* * @param destinations * The ARN of the destination event data store. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImportResult withDestinations(String... destinations) { if (this.destinations == null) { setDestinations(new com.amazonaws.internal.SdkInternalList* The ARN of the destination event data store. *
* * @param destinations * The ARN of the destination event data store. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImportResult withDestinations(java.util.Collection* The source S3 bucket. *
* * @param importSource * The source S3 bucket. */ public void setImportSource(ImportSource importSource) { this.importSource = importSource; } /** ** The source S3 bucket. *
* * @return The source S3 bucket. */ public ImportSource getImportSource() { return this.importSource; } /** ** The source S3 bucket. *
* * @param importSource * The source S3 bucket. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImportResult withImportSource(ImportSource importSource) { setImportSource(importSource); return this; } /** *
* Used with EndEventTime
to bound a StartImport
request, and limit imported trail events
* to only those events logged within a specified time period.
*
EndEventTime
to bound a StartImport
request, and limit imported trail
* events to only those events logged within a specified time period.
*/
public void setStartEventTime(java.util.Date startEventTime) {
this.startEventTime = startEventTime;
}
/**
*
* Used with EndEventTime
to bound a StartImport
request, and limit imported trail events
* to only those events logged within a specified time period.
*
EndEventTime
to bound a StartImport
request, and limit imported trail
* events to only those events logged within a specified time period.
*/
public java.util.Date getStartEventTime() {
return this.startEventTime;
}
/**
*
* Used with EndEventTime
to bound a StartImport
request, and limit imported trail events
* to only those events logged within a specified time period.
*
EndEventTime
to bound a StartImport
request, and limit imported trail
* events to only those events logged within a specified time period.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImportResult withStartEventTime(java.util.Date startEventTime) {
setStartEventTime(startEventTime);
return this;
}
/**
*
* Used with StartEventTime
to bound a StartImport
request, and limit imported trail
* events to only those events logged within a specified time period.
*
StartEventTime
to bound a StartImport
request, and limit imported
* trail events to only those events logged within a specified time period.
*/
public void setEndEventTime(java.util.Date endEventTime) {
this.endEventTime = endEventTime;
}
/**
*
* Used with StartEventTime
to bound a StartImport
request, and limit imported trail
* events to only those events logged within a specified time period.
*
StartEventTime
to bound a StartImport
request, and limit imported
* trail events to only those events logged within a specified time period.
*/
public java.util.Date getEndEventTime() {
return this.endEventTime;
}
/**
*
* Used with StartEventTime
to bound a StartImport
request, and limit imported trail
* events to only those events logged within a specified time period.
*
StartEventTime
to bound a StartImport
request, and limit imported
* trail events to only those events logged within a specified time period.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImportResult withEndEventTime(java.util.Date endEventTime) {
setEndEventTime(endEventTime);
return this;
}
/**
* * The status of the import. *
* * @param importStatus * The status of the import. * @see ImportStatus */ public void setImportStatus(String importStatus) { this.importStatus = importStatus; } /** ** The status of the import. *
* * @return The status of the import. * @see ImportStatus */ public String getImportStatus() { return this.importStatus; } /** ** The status of the import. *
* * @param importStatus * The status of the import. * @return Returns a reference to this object so that method calls can be chained together. * @see ImportStatus */ public GetImportResult withImportStatus(String importStatus) { setImportStatus(importStatus); return this; } /** ** The status of the import. *
* * @param importStatus * The status of the import. * @return Returns a reference to this object so that method calls can be chained together. * @see ImportStatus */ public GetImportResult withImportStatus(ImportStatus importStatus) { this.importStatus = importStatus.toString(); return this; } /** ** The timestamp of the import's creation. *
* * @param createdTimestamp * The timestamp of the import's creation. */ public void setCreatedTimestamp(java.util.Date createdTimestamp) { this.createdTimestamp = createdTimestamp; } /** ** The timestamp of the import's creation. *
* * @return The timestamp of the import's creation. */ public java.util.Date getCreatedTimestamp() { return this.createdTimestamp; } /** ** The timestamp of the import's creation. *
* * @param createdTimestamp * The timestamp of the import's creation. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImportResult withCreatedTimestamp(java.util.Date createdTimestamp) { setCreatedTimestamp(createdTimestamp); return this; } /** ** The timestamp of when the import was updated. *
* * @param updatedTimestamp * The timestamp of when the import was updated. */ public void setUpdatedTimestamp(java.util.Date updatedTimestamp) { this.updatedTimestamp = updatedTimestamp; } /** ** The timestamp of when the import was updated. *
* * @return The timestamp of when the import was updated. */ public java.util.Date getUpdatedTimestamp() { return this.updatedTimestamp; } /** ** The timestamp of when the import was updated. *
* * @param updatedTimestamp * The timestamp of when the import was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public GetImportResult withUpdatedTimestamp(java.util.Date updatedTimestamp) { setUpdatedTimestamp(updatedTimestamp); return this; } /** *
* Provides statistics for the import. CloudTrail does not update import statistics in real-time. Returned values
* for parameters such as EventsCompleted
may be lower than the actual value, because CloudTrail
* updates statistics incrementally over the course of the import.
*
EventsCompleted
may be lower than the actual value, because
* CloudTrail updates statistics incrementally over the course of the import.
*/
public void setImportStatistics(ImportStatistics importStatistics) {
this.importStatistics = importStatistics;
}
/**
*
* Provides statistics for the import. CloudTrail does not update import statistics in real-time. Returned values
* for parameters such as EventsCompleted
may be lower than the actual value, because CloudTrail
* updates statistics incrementally over the course of the import.
*
EventsCompleted
may be lower than the actual value, because
* CloudTrail updates statistics incrementally over the course of the import.
*/
public ImportStatistics getImportStatistics() {
return this.importStatistics;
}
/**
*
* Provides statistics for the import. CloudTrail does not update import statistics in real-time. Returned values
* for parameters such as EventsCompleted
may be lower than the actual value, because CloudTrail
* updates statistics incrementally over the course of the import.
*
EventsCompleted
may be lower than the actual value, because
* CloudTrail updates statistics incrementally over the course of the import.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetImportResult withImportStatistics(ImportStatistics importStatistics) {
setImportStatistics(importStatistics);
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 (getImportId() != null)
sb.append("ImportId: ").append(getImportId()).append(",");
if (getDestinations() != null)
sb.append("Destinations: ").append(getDestinations()).append(",");
if (getImportSource() != null)
sb.append("ImportSource: ").append(getImportSource()).append(",");
if (getStartEventTime() != null)
sb.append("StartEventTime: ").append(getStartEventTime()).append(",");
if (getEndEventTime() != null)
sb.append("EndEventTime: ").append(getEndEventTime()).append(",");
if (getImportStatus() != null)
sb.append("ImportStatus: ").append(getImportStatus()).append(",");
if (getCreatedTimestamp() != null)
sb.append("CreatedTimestamp: ").append(getCreatedTimestamp()).append(",");
if (getUpdatedTimestamp() != null)
sb.append("UpdatedTimestamp: ").append(getUpdatedTimestamp()).append(",");
if (getImportStatistics() != null)
sb.append("ImportStatistics: ").append(getImportStatistics());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof GetImportResult == false)
return false;
GetImportResult other = (GetImportResult) obj;
if (other.getImportId() == null ^ this.getImportId() == null)
return false;
if (other.getImportId() != null && other.getImportId().equals(this.getImportId()) == false)
return false;
if (other.getDestinations() == null ^ this.getDestinations() == null)
return false;
if (other.getDestinations() != null && other.getDestinations().equals(this.getDestinations()) == false)
return false;
if (other.getImportSource() == null ^ this.getImportSource() == null)
return false;
if (other.getImportSource() != null && other.getImportSource().equals(this.getImportSource()) == false)
return false;
if (other.getStartEventTime() == null ^ this.getStartEventTime() == null)
return false;
if (other.getStartEventTime() != null && other.getStartEventTime().equals(this.getStartEventTime()) == false)
return false;
if (other.getEndEventTime() == null ^ this.getEndEventTime() == null)
return false;
if (other.getEndEventTime() != null && other.getEndEventTime().equals(this.getEndEventTime()) == false)
return false;
if (other.getImportStatus() == null ^ this.getImportStatus() == null)
return false;
if (other.getImportStatus() != null && other.getImportStatus().equals(this.getImportStatus()) == false)
return false;
if (other.getCreatedTimestamp() == null ^ this.getCreatedTimestamp() == null)
return false;
if (other.getCreatedTimestamp() != null && other.getCreatedTimestamp().equals(this.getCreatedTimestamp()) == false)
return false;
if (other.getUpdatedTimestamp() == null ^ this.getUpdatedTimestamp() == null)
return false;
if (other.getUpdatedTimestamp() != null && other.getUpdatedTimestamp().equals(this.getUpdatedTimestamp()) == false)
return false;
if (other.getImportStatistics() == null ^ this.getImportStatistics() == null)
return false;
if (other.getImportStatistics() != null && other.getImportStatistics().equals(this.getImportStatistics()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getImportId() == null) ? 0 : getImportId().hashCode());
hashCode = prime * hashCode + ((getDestinations() == null) ? 0 : getDestinations().hashCode());
hashCode = prime * hashCode + ((getImportSource() == null) ? 0 : getImportSource().hashCode());
hashCode = prime * hashCode + ((getStartEventTime() == null) ? 0 : getStartEventTime().hashCode());
hashCode = prime * hashCode + ((getEndEventTime() == null) ? 0 : getEndEventTime().hashCode());
hashCode = prime * hashCode + ((getImportStatus() == null) ? 0 : getImportStatus().hashCode());
hashCode = prime * hashCode + ((getCreatedTimestamp() == null) ? 0 : getCreatedTimestamp().hashCode());
hashCode = prime * hashCode + ((getUpdatedTimestamp() == null) ? 0 : getUpdatedTimestamp().hashCode());
hashCode = prime * hashCode + ((getImportStatistics() == null) ? 0 : getImportStatistics().hashCode());
return hashCode;
}
@Override
public GetImportResult clone() {
try {
return (GetImportResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}