* The ID of the publishing destination. *
*/ private String destinationId; /** ** The type of publishing destination. Currently, only Amazon S3 buckets are supported. *
*/ private String destinationType; /** ** The status of the publishing destination. *
*/ private String status; /** ** The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the * destination. *
*/ private Long publishingFailureStartTimestamp; /** *
* A DestinationProperties
object that includes the DestinationArn
and
* KmsKeyArn
of the publishing destination.
*
* The ID of the publishing destination. *
* * @param destinationId * The ID of the publishing destination. */ public void setDestinationId(String destinationId) { this.destinationId = destinationId; } /** ** The ID of the publishing destination. *
* * @return The ID of the publishing destination. */ public String getDestinationId() { return this.destinationId; } /** ** The ID of the publishing destination. *
* * @param destinationId * The ID of the publishing destination. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribePublishingDestinationResult withDestinationId(String destinationId) { setDestinationId(destinationId); return this; } /** ** The type of publishing destination. Currently, only Amazon S3 buckets are supported. *
* * @param destinationType * The type of publishing destination. Currently, only Amazon S3 buckets are supported. * @see DestinationType */ public void setDestinationType(String destinationType) { this.destinationType = destinationType; } /** ** The type of publishing destination. Currently, only Amazon S3 buckets are supported. *
* * @return The type of publishing destination. Currently, only Amazon S3 buckets are supported. * @see DestinationType */ public String getDestinationType() { return this.destinationType; } /** ** The type of publishing destination. Currently, only Amazon S3 buckets are supported. *
* * @param destinationType * The type of publishing destination. Currently, only Amazon S3 buckets are supported. * @return Returns a reference to this object so that method calls can be chained together. * @see DestinationType */ public DescribePublishingDestinationResult withDestinationType(String destinationType) { setDestinationType(destinationType); return this; } /** ** The type of publishing destination. Currently, only Amazon S3 buckets are supported. *
* * @param destinationType * The type of publishing destination. Currently, only Amazon S3 buckets are supported. * @return Returns a reference to this object so that method calls can be chained together. * @see DestinationType */ public DescribePublishingDestinationResult withDestinationType(DestinationType destinationType) { this.destinationType = destinationType.toString(); return this; } /** ** The status of the publishing destination. *
* * @param status * The status of the publishing destination. * @see PublishingStatus */ public void setStatus(String status) { this.status = status; } /** ** The status of the publishing destination. *
* * @return The status of the publishing destination. * @see PublishingStatus */ public String getStatus() { return this.status; } /** ** The status of the publishing destination. *
* * @param status * The status of the publishing destination. * @return Returns a reference to this object so that method calls can be chained together. * @see PublishingStatus */ public DescribePublishingDestinationResult withStatus(String status) { setStatus(status); return this; } /** ** The status of the publishing destination. *
* * @param status * The status of the publishing destination. * @return Returns a reference to this object so that method calls can be chained together. * @see PublishingStatus */ public DescribePublishingDestinationResult withStatus(PublishingStatus status) { this.status = status.toString(); return this; } /** ** The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the * destination. *
* * @param publishingFailureStartTimestamp * The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the * destination. */ public void setPublishingFailureStartTimestamp(Long publishingFailureStartTimestamp) { this.publishingFailureStartTimestamp = publishingFailureStartTimestamp; } /** ** The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the * destination. *
* * @return The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the * destination. */ public Long getPublishingFailureStartTimestamp() { return this.publishingFailureStartTimestamp; } /** ** The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the * destination. *
* * @param publishingFailureStartTimestamp * The time, in epoch millisecond format, at which GuardDuty was first unable to publish findings to the * destination. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribePublishingDestinationResult withPublishingFailureStartTimestamp(Long publishingFailureStartTimestamp) { setPublishingFailureStartTimestamp(publishingFailureStartTimestamp); return this; } /** *
* A DestinationProperties
object that includes the DestinationArn
and
* KmsKeyArn
of the publishing destination.
*
DestinationProperties
object that includes the DestinationArn
and
* KmsKeyArn
of the publishing destination.
*/
public void setDestinationProperties(DestinationProperties destinationProperties) {
this.destinationProperties = destinationProperties;
}
/**
*
* A DestinationProperties
object that includes the DestinationArn
and
* KmsKeyArn
of the publishing destination.
*
DestinationProperties
object that includes the DestinationArn
and
* KmsKeyArn
of the publishing destination.
*/
public DestinationProperties getDestinationProperties() {
return this.destinationProperties;
}
/**
*
* A DestinationProperties
object that includes the DestinationArn
and
* KmsKeyArn
of the publishing destination.
*
DestinationProperties
object that includes the DestinationArn
and
* KmsKeyArn
of the publishing destination.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribePublishingDestinationResult withDestinationProperties(DestinationProperties destinationProperties) {
setDestinationProperties(destinationProperties);
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 (getDestinationId() != null)
sb.append("DestinationId: ").append(getDestinationId()).append(",");
if (getDestinationType() != null)
sb.append("DestinationType: ").append(getDestinationType()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getPublishingFailureStartTimestamp() != null)
sb.append("PublishingFailureStartTimestamp: ").append(getPublishingFailureStartTimestamp()).append(",");
if (getDestinationProperties() != null)
sb.append("DestinationProperties: ").append(getDestinationProperties());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribePublishingDestinationResult == false)
return false;
DescribePublishingDestinationResult other = (DescribePublishingDestinationResult) obj;
if (other.getDestinationId() == null ^ this.getDestinationId() == null)
return false;
if (other.getDestinationId() != null && other.getDestinationId().equals(this.getDestinationId()) == false)
return false;
if (other.getDestinationType() == null ^ this.getDestinationType() == null)
return false;
if (other.getDestinationType() != null && other.getDestinationType().equals(this.getDestinationType()) == 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.getPublishingFailureStartTimestamp() == null ^ this.getPublishingFailureStartTimestamp() == null)
return false;
if (other.getPublishingFailureStartTimestamp() != null
&& other.getPublishingFailureStartTimestamp().equals(this.getPublishingFailureStartTimestamp()) == false)
return false;
if (other.getDestinationProperties() == null ^ this.getDestinationProperties() == null)
return false;
if (other.getDestinationProperties() != null && other.getDestinationProperties().equals(this.getDestinationProperties()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getDestinationId() == null) ? 0 : getDestinationId().hashCode());
hashCode = prime * hashCode + ((getDestinationType() == null) ? 0 : getDestinationType().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getPublishingFailureStartTimestamp() == null) ? 0 : getPublishingFailureStartTimestamp().hashCode());
hashCode = prime * hashCode + ((getDestinationProperties() == null) ? 0 : getDestinationProperties().hashCode());
return hashCode;
}
@Override
public DescribePublishingDestinationResult clone() {
try {
return (DescribePublishingDestinationResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}