All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.kinesisfirehose.model.DeliveryStreamDescription Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Kinesis module holds the client classes that are used for communicating with Amazon Kinesis Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2011-2016 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.kinesisfirehose.model;

import java.io.Serializable;

/**
 * 

* Contains information about a delivery stream. *

*/ public class DeliveryStreamDescription implements Serializable, Cloneable { /** *

* The name of the delivery stream. *

*/ private String deliveryStreamName; /** *

* The Amazon Resource Name (ARN) of the delivery stream. *

*/ private String deliveryStreamARN; /** *

* The status of the delivery stream. *

*/ private String deliveryStreamStatus; /** *

* Each time the destination is updated for a delivery stream, the version ID is changed, and the current version ID * is required when updating the destination. This is so that the service knows it is applying the changes to the * correct version of the delivery stream. *

*/ private String versionId; /** *

* The date and time that the delivery stream was created. *

*/ private java.util.Date createTimestamp; /** *

* The date and time that the delivery stream was last updated. *

*/ private java.util.Date lastUpdateTimestamp; /** *

* The destinations. *

*/ private java.util.List destinations; /** *

* Indicates whether there are more destinations available to list. *

*/ private Boolean hasMoreDestinations; /** *

* The name of the delivery stream. *

* * @param deliveryStreamName * The name of the delivery stream. */ public void setDeliveryStreamName(String deliveryStreamName) { this.deliveryStreamName = deliveryStreamName; } /** *

* The name of the delivery stream. *

* * @return The name of the delivery stream. */ public String getDeliveryStreamName() { return this.deliveryStreamName; } /** *

* The name of the delivery stream. *

* * @param deliveryStreamName * The name of the delivery stream. * @return Returns a reference to this object so that method calls can be chained together. */ public DeliveryStreamDescription withDeliveryStreamName(String deliveryStreamName) { setDeliveryStreamName(deliveryStreamName); return this; } /** *

* The Amazon Resource Name (ARN) of the delivery stream. *

* * @param deliveryStreamARN * The Amazon Resource Name (ARN) of the delivery stream. */ public void setDeliveryStreamARN(String deliveryStreamARN) { this.deliveryStreamARN = deliveryStreamARN; } /** *

* The Amazon Resource Name (ARN) of the delivery stream. *

* * @return The Amazon Resource Name (ARN) of the delivery stream. */ public String getDeliveryStreamARN() { return this.deliveryStreamARN; } /** *

* The Amazon Resource Name (ARN) of the delivery stream. *

* * @param deliveryStreamARN * The Amazon Resource Name (ARN) of the delivery stream. * @return Returns a reference to this object so that method calls can be chained together. */ public DeliveryStreamDescription withDeliveryStreamARN(String deliveryStreamARN) { setDeliveryStreamARN(deliveryStreamARN); return this; } /** *

* The status of the delivery stream. *

* * @param deliveryStreamStatus * The status of the delivery stream. * @see DeliveryStreamStatus */ public void setDeliveryStreamStatus(String deliveryStreamStatus) { this.deliveryStreamStatus = deliveryStreamStatus; } /** *

* The status of the delivery stream. *

* * @return The status of the delivery stream. * @see DeliveryStreamStatus */ public String getDeliveryStreamStatus() { return this.deliveryStreamStatus; } /** *

* The status of the delivery stream. *

* * @param deliveryStreamStatus * The status of the delivery stream. * @return Returns a reference to this object so that method calls can be chained together. * @see DeliveryStreamStatus */ public DeliveryStreamDescription withDeliveryStreamStatus(String deliveryStreamStatus) { setDeliveryStreamStatus(deliveryStreamStatus); return this; } /** *

* The status of the delivery stream. *

* * @param deliveryStreamStatus * The status of the delivery stream. * @see DeliveryStreamStatus */ public void setDeliveryStreamStatus(DeliveryStreamStatus deliveryStreamStatus) { this.deliveryStreamStatus = deliveryStreamStatus.toString(); } /** *

* The status of the delivery stream. *

* * @param deliveryStreamStatus * The status of the delivery stream. * @return Returns a reference to this object so that method calls can be chained together. * @see DeliveryStreamStatus */ public DeliveryStreamDescription withDeliveryStreamStatus(DeliveryStreamStatus deliveryStreamStatus) { setDeliveryStreamStatus(deliveryStreamStatus); return this; } /** *

* Each time the destination is updated for a delivery stream, the version ID is changed, and the current version ID * is required when updating the destination. This is so that the service knows it is applying the changes to the * correct version of the delivery stream. *

* * @param versionId * Each time the destination is updated for a delivery stream, the version ID is changed, and the current * version ID is required when updating the destination. This is so that the service knows it is applying the * changes to the correct version of the delivery stream. */ public void setVersionId(String versionId) { this.versionId = versionId; } /** *

* Each time the destination is updated for a delivery stream, the version ID is changed, and the current version ID * is required when updating the destination. This is so that the service knows it is applying the changes to the * correct version of the delivery stream. *

* * @return Each time the destination is updated for a delivery stream, the version ID is changed, and the current * version ID is required when updating the destination. This is so that the service knows it is applying * the changes to the correct version of the delivery stream. */ public String getVersionId() { return this.versionId; } /** *

* Each time the destination is updated for a delivery stream, the version ID is changed, and the current version ID * is required when updating the destination. This is so that the service knows it is applying the changes to the * correct version of the delivery stream. *

* * @param versionId * Each time the destination is updated for a delivery stream, the version ID is changed, and the current * version ID is required when updating the destination. This is so that the service knows it is applying the * changes to the correct version of the delivery stream. * @return Returns a reference to this object so that method calls can be chained together. */ public DeliveryStreamDescription withVersionId(String versionId) { setVersionId(versionId); return this; } /** *

* The date and time that the delivery stream was created. *

* * @param createTimestamp * The date and time that the delivery stream was created. */ public void setCreateTimestamp(java.util.Date createTimestamp) { this.createTimestamp = createTimestamp; } /** *

* The date and time that the delivery stream was created. *

* * @return The date and time that the delivery stream was created. */ public java.util.Date getCreateTimestamp() { return this.createTimestamp; } /** *

* The date and time that the delivery stream was created. *

* * @param createTimestamp * The date and time that the delivery stream was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DeliveryStreamDescription withCreateTimestamp(java.util.Date createTimestamp) { setCreateTimestamp(createTimestamp); return this; } /** *

* The date and time that the delivery stream was last updated. *

* * @param lastUpdateTimestamp * The date and time that the delivery stream was last updated. */ public void setLastUpdateTimestamp(java.util.Date lastUpdateTimestamp) { this.lastUpdateTimestamp = lastUpdateTimestamp; } /** *

* The date and time that the delivery stream was last updated. *

* * @return The date and time that the delivery stream was last updated. */ public java.util.Date getLastUpdateTimestamp() { return this.lastUpdateTimestamp; } /** *

* The date and time that the delivery stream was last updated. *

* * @param lastUpdateTimestamp * The date and time that the delivery stream was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DeliveryStreamDescription withLastUpdateTimestamp(java.util.Date lastUpdateTimestamp) { setLastUpdateTimestamp(lastUpdateTimestamp); return this; } /** *

* The destinations. *

* * @return The destinations. */ public java.util.List getDestinations() { return destinations; } /** *

* The destinations. *

* * @param destinations * The destinations. */ public void setDestinations(java.util.Collection destinations) { if (destinations == null) { this.destinations = null; return; } this.destinations = new java.util.ArrayList(destinations); } /** *

* The destinations. *

*

* 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 destinations. * @return Returns a reference to this object so that method calls can be chained together. */ public DeliveryStreamDescription withDestinations(DestinationDescription... destinations) { if (this.destinations == null) { setDestinations(new java.util.ArrayList(destinations.length)); } for (DestinationDescription ele : destinations) { this.destinations.add(ele); } return this; } /** *

* The destinations. *

* * @param destinations * The destinations. * @return Returns a reference to this object so that method calls can be chained together. */ public DeliveryStreamDescription withDestinations(java.util.Collection destinations) { setDestinations(destinations); return this; } /** *

* Indicates whether there are more destinations available to list. *

* * @param hasMoreDestinations * Indicates whether there are more destinations available to list. */ public void setHasMoreDestinations(Boolean hasMoreDestinations) { this.hasMoreDestinations = hasMoreDestinations; } /** *

* Indicates whether there are more destinations available to list. *

* * @return Indicates whether there are more destinations available to list. */ public Boolean getHasMoreDestinations() { return this.hasMoreDestinations; } /** *

* Indicates whether there are more destinations available to list. *

* * @param hasMoreDestinations * Indicates whether there are more destinations available to list. * @return Returns a reference to this object so that method calls can be chained together. */ public DeliveryStreamDescription withHasMoreDestinations(Boolean hasMoreDestinations) { setHasMoreDestinations(hasMoreDestinations); return this; } /** *

* Indicates whether there are more destinations available to list. *

* * @return Indicates whether there are more destinations available to list. */ public Boolean isHasMoreDestinations() { return this.hasMoreDestinations; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getDeliveryStreamName() != null) sb.append("DeliveryStreamName: ").append(getDeliveryStreamName()).append(","); if (getDeliveryStreamARN() != null) sb.append("DeliveryStreamARN: ").append(getDeliveryStreamARN()).append(","); if (getDeliveryStreamStatus() != null) sb.append("DeliveryStreamStatus: ").append(getDeliveryStreamStatus()).append(","); if (getVersionId() != null) sb.append("VersionId: ").append(getVersionId()).append(","); if (getCreateTimestamp() != null) sb.append("CreateTimestamp: ").append(getCreateTimestamp()).append(","); if (getLastUpdateTimestamp() != null) sb.append("LastUpdateTimestamp: ").append(getLastUpdateTimestamp()).append(","); if (getDestinations() != null) sb.append("Destinations: ").append(getDestinations()).append(","); if (getHasMoreDestinations() != null) sb.append("HasMoreDestinations: ").append(getHasMoreDestinations()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DeliveryStreamDescription == false) return false; DeliveryStreamDescription other = (DeliveryStreamDescription) obj; if (other.getDeliveryStreamName() == null ^ this.getDeliveryStreamName() == null) return false; if (other.getDeliveryStreamName() != null && other.getDeliveryStreamName().equals(this.getDeliveryStreamName()) == false) return false; if (other.getDeliveryStreamARN() == null ^ this.getDeliveryStreamARN() == null) return false; if (other.getDeliveryStreamARN() != null && other.getDeliveryStreamARN().equals(this.getDeliveryStreamARN()) == false) return false; if (other.getDeliveryStreamStatus() == null ^ this.getDeliveryStreamStatus() == null) return false; if (other.getDeliveryStreamStatus() != null && other.getDeliveryStreamStatus().equals(this.getDeliveryStreamStatus()) == false) return false; if (other.getVersionId() == null ^ this.getVersionId() == null) return false; if (other.getVersionId() != null && other.getVersionId().equals(this.getVersionId()) == false) return false; if (other.getCreateTimestamp() == null ^ this.getCreateTimestamp() == null) return false; if (other.getCreateTimestamp() != null && other.getCreateTimestamp().equals(this.getCreateTimestamp()) == false) return false; if (other.getLastUpdateTimestamp() == null ^ this.getLastUpdateTimestamp() == null) return false; if (other.getLastUpdateTimestamp() != null && other.getLastUpdateTimestamp().equals(this.getLastUpdateTimestamp()) == 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.getHasMoreDestinations() == null ^ this.getHasMoreDestinations() == null) return false; if (other.getHasMoreDestinations() != null && other.getHasMoreDestinations().equals(this.getHasMoreDestinations()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDeliveryStreamName() == null) ? 0 : getDeliveryStreamName().hashCode()); hashCode = prime * hashCode + ((getDeliveryStreamARN() == null) ? 0 : getDeliveryStreamARN().hashCode()); hashCode = prime * hashCode + ((getDeliveryStreamStatus() == null) ? 0 : getDeliveryStreamStatus().hashCode()); hashCode = prime * hashCode + ((getVersionId() == null) ? 0 : getVersionId().hashCode()); hashCode = prime * hashCode + ((getCreateTimestamp() == null) ? 0 : getCreateTimestamp().hashCode()); hashCode = prime * hashCode + ((getLastUpdateTimestamp() == null) ? 0 : getLastUpdateTimestamp().hashCode()); hashCode = prime * hashCode + ((getDestinations() == null) ? 0 : getDestinations().hashCode()); hashCode = prime * hashCode + ((getHasMoreDestinations() == null) ? 0 : getHasMoreDestinations().hashCode()); return hashCode; } @Override public DeliveryStreamDescription clone() { try { return (DeliveryStreamDescription) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy