com.amazonaws.services.appfabric.model.IngestionDestination Maven / Gradle / Ivy
Show all versions of aws-java-sdk-appfabric Show documentation
/*
* 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.appfabric.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Contains information about an ingestion destination.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class IngestionDestination implements Serializable, Cloneable, StructuredPojo {
/**
*
* The Amazon Resource Name (ARN) of the ingestion destination.
*
*/
private String arn;
/**
*
* The Amazon Resource Name (ARN) of the ingestion.
*
*/
private String ingestionArn;
/**
*
* Contains information about how ingested data is processed.
*
*/
private ProcessingConfiguration processingConfiguration;
/**
*
* Contains information about the destination of ingested data.
*
*/
private DestinationConfiguration destinationConfiguration;
/**
*
* The state of the ingestion destination.
*
*
* The following states are possible:
*
*
* -
*
* Active
: The ingestion destination is active and is ready to be used.
*
*
* -
*
* Failed
: The ingestion destination has failed. If the ingestion destination is in this state, you
* should verify the ingestion destination configuration and try again.
*
*
*
*/
private String status;
/**
*
* The reason for the current status of the ingestion destination.
*
*
* Only present when the status
of ingestion destination is Failed
.
*
*/
private String statusReason;
/**
*
* The timestamp of when the ingestion destination was created.
*
*/
private java.util.Date createdAt;
/**
*
* The timestamp of when the ingestion destination was last updated.
*
*/
private java.util.Date updatedAt;
/**
*
* The Amazon Resource Name (ARN) of the ingestion destination.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the ingestion destination.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The Amazon Resource Name (ARN) of the ingestion destination.
*
*
* @return The Amazon Resource Name (ARN) of the ingestion destination.
*/
public String getArn() {
return this.arn;
}
/**
*
* The Amazon Resource Name (ARN) of the ingestion destination.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the ingestion destination.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IngestionDestination withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the ingestion.
*
*
* @param ingestionArn
* The Amazon Resource Name (ARN) of the ingestion.
*/
public void setIngestionArn(String ingestionArn) {
this.ingestionArn = ingestionArn;
}
/**
*
* The Amazon Resource Name (ARN) of the ingestion.
*
*
* @return The Amazon Resource Name (ARN) of the ingestion.
*/
public String getIngestionArn() {
return this.ingestionArn;
}
/**
*
* The Amazon Resource Name (ARN) of the ingestion.
*
*
* @param ingestionArn
* The Amazon Resource Name (ARN) of the ingestion.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IngestionDestination withIngestionArn(String ingestionArn) {
setIngestionArn(ingestionArn);
return this;
}
/**
*
* Contains information about how ingested data is processed.
*
*
* @param processingConfiguration
* Contains information about how ingested data is processed.
*/
public void setProcessingConfiguration(ProcessingConfiguration processingConfiguration) {
this.processingConfiguration = processingConfiguration;
}
/**
*
* Contains information about how ingested data is processed.
*
*
* @return Contains information about how ingested data is processed.
*/
public ProcessingConfiguration getProcessingConfiguration() {
return this.processingConfiguration;
}
/**
*
* Contains information about how ingested data is processed.
*
*
* @param processingConfiguration
* Contains information about how ingested data is processed.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IngestionDestination withProcessingConfiguration(ProcessingConfiguration processingConfiguration) {
setProcessingConfiguration(processingConfiguration);
return this;
}
/**
*
* Contains information about the destination of ingested data.
*
*
* @param destinationConfiguration
* Contains information about the destination of ingested data.
*/
public void setDestinationConfiguration(DestinationConfiguration destinationConfiguration) {
this.destinationConfiguration = destinationConfiguration;
}
/**
*
* Contains information about the destination of ingested data.
*
*
* @return Contains information about the destination of ingested data.
*/
public DestinationConfiguration getDestinationConfiguration() {
return this.destinationConfiguration;
}
/**
*
* Contains information about the destination of ingested data.
*
*
* @param destinationConfiguration
* Contains information about the destination of ingested data.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IngestionDestination withDestinationConfiguration(DestinationConfiguration destinationConfiguration) {
setDestinationConfiguration(destinationConfiguration);
return this;
}
/**
*
* The state of the ingestion destination.
*
*
* The following states are possible:
*
*
* -
*
* Active
: The ingestion destination is active and is ready to be used.
*
*
* -
*
* Failed
: The ingestion destination has failed. If the ingestion destination is in this state, you
* should verify the ingestion destination configuration and try again.
*
*
*
*
* @param status
* The state of the ingestion destination.
*
* The following states are possible:
*
*
* -
*
* Active
: The ingestion destination is active and is ready to be used.
*
*
* -
*
* Failed
: The ingestion destination has failed. If the ingestion destination is in this state,
* you should verify the ingestion destination configuration and try again.
*
*
* @see IngestionDestinationStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The state of the ingestion destination.
*
*
* The following states are possible:
*
*
* -
*
* Active
: The ingestion destination is active and is ready to be used.
*
*
* -
*
* Failed
: The ingestion destination has failed. If the ingestion destination is in this state, you
* should verify the ingestion destination configuration and try again.
*
*
*
*
* @return The state of the ingestion destination.
*
* The following states are possible:
*
*
* -
*
* Active
: The ingestion destination is active and is ready to be used.
*
*
* -
*
* Failed
: The ingestion destination has failed. If the ingestion destination is in this state,
* you should verify the ingestion destination configuration and try again.
*
*
* @see IngestionDestinationStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* The state of the ingestion destination.
*
*
* The following states are possible:
*
*
* -
*
* Active
: The ingestion destination is active and is ready to be used.
*
*
* -
*
* Failed
: The ingestion destination has failed. If the ingestion destination is in this state, you
* should verify the ingestion destination configuration and try again.
*
*
*
*
* @param status
* The state of the ingestion destination.
*
* The following states are possible:
*
*
* -
*
* Active
: The ingestion destination is active and is ready to be used.
*
*
* -
*
* Failed
: The ingestion destination has failed. If the ingestion destination is in this state,
* you should verify the ingestion destination configuration and try again.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see IngestionDestinationStatus
*/
public IngestionDestination withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The state of the ingestion destination.
*
*
* The following states are possible:
*
*
* -
*
* Active
: The ingestion destination is active and is ready to be used.
*
*
* -
*
* Failed
: The ingestion destination has failed. If the ingestion destination is in this state, you
* should verify the ingestion destination configuration and try again.
*
*
*
*
* @param status
* The state of the ingestion destination.
*
* The following states are possible:
*
*
* -
*
* Active
: The ingestion destination is active and is ready to be used.
*
*
* -
*
* Failed
: The ingestion destination has failed. If the ingestion destination is in this state,
* you should verify the ingestion destination configuration and try again.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see IngestionDestinationStatus
*/
public IngestionDestination withStatus(IngestionDestinationStatus status) {
this.status = status.toString();
return this;
}
/**
*
* The reason for the current status of the ingestion destination.
*
*
* Only present when the status
of ingestion destination is Failed
.
*
*
* @param statusReason
* The reason for the current status of the ingestion destination.
*
* Only present when the status
of ingestion destination is Failed
.
*/
public void setStatusReason(String statusReason) {
this.statusReason = statusReason;
}
/**
*
* The reason for the current status of the ingestion destination.
*
*
* Only present when the status
of ingestion destination is Failed
.
*
*
* @return The reason for the current status of the ingestion destination.
*
* Only present when the status
of ingestion destination is Failed
.
*/
public String getStatusReason() {
return this.statusReason;
}
/**
*
* The reason for the current status of the ingestion destination.
*
*
* Only present when the status
of ingestion destination is Failed
.
*
*
* @param statusReason
* The reason for the current status of the ingestion destination.
*
* Only present when the status
of ingestion destination is Failed
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IngestionDestination withStatusReason(String statusReason) {
setStatusReason(statusReason);
return this;
}
/**
*
* The timestamp of when the ingestion destination was created.
*
*
* @param createdAt
* The timestamp of when the ingestion destination was created.
*/
public void setCreatedAt(java.util.Date createdAt) {
this.createdAt = createdAt;
}
/**
*
* The timestamp of when the ingestion destination was created.
*
*
* @return The timestamp of when the ingestion destination was created.
*/
public java.util.Date getCreatedAt() {
return this.createdAt;
}
/**
*
* The timestamp of when the ingestion destination was created.
*
*
* @param createdAt
* The timestamp of when the ingestion destination was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IngestionDestination withCreatedAt(java.util.Date createdAt) {
setCreatedAt(createdAt);
return this;
}
/**
*
* The timestamp of when the ingestion destination was last updated.
*
*
* @param updatedAt
* The timestamp of when the ingestion destination was last updated.
*/
public void setUpdatedAt(java.util.Date updatedAt) {
this.updatedAt = updatedAt;
}
/**
*
* The timestamp of when the ingestion destination was last updated.
*
*
* @return The timestamp of when the ingestion destination was last updated.
*/
public java.util.Date getUpdatedAt() {
return this.updatedAt;
}
/**
*
* The timestamp of when the ingestion destination was last updated.
*
*
* @param updatedAt
* The timestamp of when the ingestion destination was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IngestionDestination withUpdatedAt(java.util.Date updatedAt) {
setUpdatedAt(updatedAt);
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 (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getIngestionArn() != null)
sb.append("IngestionArn: ").append(getIngestionArn()).append(",");
if (getProcessingConfiguration() != null)
sb.append("ProcessingConfiguration: ").append(getProcessingConfiguration()).append(",");
if (getDestinationConfiguration() != null)
sb.append("DestinationConfiguration: ").append(getDestinationConfiguration()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getStatusReason() != null)
sb.append("StatusReason: ").append(getStatusReason()).append(",");
if (getCreatedAt() != null)
sb.append("CreatedAt: ").append(getCreatedAt()).append(",");
if (getUpdatedAt() != null)
sb.append("UpdatedAt: ").append(getUpdatedAt());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof IngestionDestination == false)
return false;
IngestionDestination other = (IngestionDestination) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getIngestionArn() == null ^ this.getIngestionArn() == null)
return false;
if (other.getIngestionArn() != null && other.getIngestionArn().equals(this.getIngestionArn()) == false)
return false;
if (other.getProcessingConfiguration() == null ^ this.getProcessingConfiguration() == null)
return false;
if (other.getProcessingConfiguration() != null && other.getProcessingConfiguration().equals(this.getProcessingConfiguration()) == false)
return false;
if (other.getDestinationConfiguration() == null ^ this.getDestinationConfiguration() == null)
return false;
if (other.getDestinationConfiguration() != null && other.getDestinationConfiguration().equals(this.getDestinationConfiguration()) == 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.getStatusReason() == null ^ this.getStatusReason() == null)
return false;
if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false)
return false;
if (other.getCreatedAt() == null ^ this.getCreatedAt() == null)
return false;
if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false)
return false;
if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null)
return false;
if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getIngestionArn() == null) ? 0 : getIngestionArn().hashCode());
hashCode = prime * hashCode + ((getProcessingConfiguration() == null) ? 0 : getProcessingConfiguration().hashCode());
hashCode = prime * hashCode + ((getDestinationConfiguration() == null) ? 0 : getDestinationConfiguration().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode());
hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
return hashCode;
}
@Override
public IngestionDestination clone() {
try {
return (IngestionDestination) 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.appfabric.model.transform.IngestionDestinationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}