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

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

/*
 * Copyright 2014-2019 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;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateDestinationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of the delivery stream. *

*/ private String deliveryStreamName; /** *

* Obtain this value from the VersionId result of DeliveryStreamDescription. This value is * required, and helps the service perform conditional operations. For example, if there is an interleaving update * and this value is null, then the update destination fails. After the update is successful, the * VersionId value is updated. The service then performs a merge of the old configuration with the new * configuration. *

*/ private String currentDeliveryStreamVersionId; /** *

* The ID of the destination. *

*/ private String destinationId; /** *

* [Deprecated] Describes an update for a destination in Amazon S3. *

*/ @Deprecated private S3DestinationUpdate s3DestinationUpdate; /** *

* Describes an update for a destination in Amazon S3. *

*/ private ExtendedS3DestinationUpdate extendedS3DestinationUpdate; /** *

* Describes an update for a destination in Amazon Redshift. *

*/ private RedshiftDestinationUpdate redshiftDestinationUpdate; /** *

* Describes an update for a destination in Amazon ES. *

*/ private ElasticsearchDestinationUpdate elasticsearchDestinationUpdate; /** *

* Describes an update for a destination in Splunk. *

*/ private SplunkDestinationUpdate splunkDestinationUpdate; /** *

* 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 UpdateDestinationRequest withDeliveryStreamName(String deliveryStreamName) { setDeliveryStreamName(deliveryStreamName); return this; } /** *

* Obtain this value from the VersionId result of DeliveryStreamDescription. This value is * required, and helps the service perform conditional operations. For example, if there is an interleaving update * and this value is null, then the update destination fails. After the update is successful, the * VersionId value is updated. The service then performs a merge of the old configuration with the new * configuration. *

* * @param currentDeliveryStreamVersionId * Obtain this value from the VersionId result of DeliveryStreamDescription. This value * is required, and helps the service perform conditional operations. For example, if there is an * interleaving update and this value is null, then the update destination fails. After the update is * successful, the VersionId value is updated. The service then performs a merge of the old * configuration with the new configuration. */ public void setCurrentDeliveryStreamVersionId(String currentDeliveryStreamVersionId) { this.currentDeliveryStreamVersionId = currentDeliveryStreamVersionId; } /** *

* Obtain this value from the VersionId result of DeliveryStreamDescription. This value is * required, and helps the service perform conditional operations. For example, if there is an interleaving update * and this value is null, then the update destination fails. After the update is successful, the * VersionId value is updated. The service then performs a merge of the old configuration with the new * configuration. *

* * @return Obtain this value from the VersionId result of DeliveryStreamDescription. This value * is required, and helps the service perform conditional operations. For example, if there is an * interleaving update and this value is null, then the update destination fails. After the update is * successful, the VersionId value is updated. The service then performs a merge of the old * configuration with the new configuration. */ public String getCurrentDeliveryStreamVersionId() { return this.currentDeliveryStreamVersionId; } /** *

* Obtain this value from the VersionId result of DeliveryStreamDescription. This value is * required, and helps the service perform conditional operations. For example, if there is an interleaving update * and this value is null, then the update destination fails. After the update is successful, the * VersionId value is updated. The service then performs a merge of the old configuration with the new * configuration. *

* * @param currentDeliveryStreamVersionId * Obtain this value from the VersionId result of DeliveryStreamDescription. This value * is required, and helps the service perform conditional operations. For example, if there is an * interleaving update and this value is null, then the update destination fails. After the update is * successful, the VersionId value is updated. The service then performs a merge of the old * configuration with the new configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDestinationRequest withCurrentDeliveryStreamVersionId(String currentDeliveryStreamVersionId) { setCurrentDeliveryStreamVersionId(currentDeliveryStreamVersionId); return this; } /** *

* The ID of the destination. *

* * @param destinationId * The ID of the destination. */ public void setDestinationId(String destinationId) { this.destinationId = destinationId; } /** *

* The ID of the destination. *

* * @return The ID of the destination. */ public String getDestinationId() { return this.destinationId; } /** *

* The ID of the destination. *

* * @param destinationId * The ID of the destination. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDestinationRequest withDestinationId(String destinationId) { setDestinationId(destinationId); return this; } /** *

* [Deprecated] Describes an update for a destination in Amazon S3. *

* * @param s3DestinationUpdate * [Deprecated] Describes an update for a destination in Amazon S3. */ @Deprecated public void setS3DestinationUpdate(S3DestinationUpdate s3DestinationUpdate) { this.s3DestinationUpdate = s3DestinationUpdate; } /** *

* [Deprecated] Describes an update for a destination in Amazon S3. *

* * @return [Deprecated] Describes an update for a destination in Amazon S3. */ @Deprecated public S3DestinationUpdate getS3DestinationUpdate() { return this.s3DestinationUpdate; } /** *

* [Deprecated] Describes an update for a destination in Amazon S3. *

* * @param s3DestinationUpdate * [Deprecated] Describes an update for a destination in Amazon S3. * @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public UpdateDestinationRequest withS3DestinationUpdate(S3DestinationUpdate s3DestinationUpdate) { setS3DestinationUpdate(s3DestinationUpdate); return this; } /** *

* Describes an update for a destination in Amazon S3. *

* * @param extendedS3DestinationUpdate * Describes an update for a destination in Amazon S3. */ public void setExtendedS3DestinationUpdate(ExtendedS3DestinationUpdate extendedS3DestinationUpdate) { this.extendedS3DestinationUpdate = extendedS3DestinationUpdate; } /** *

* Describes an update for a destination in Amazon S3. *

* * @return Describes an update for a destination in Amazon S3. */ public ExtendedS3DestinationUpdate getExtendedS3DestinationUpdate() { return this.extendedS3DestinationUpdate; } /** *

* Describes an update for a destination in Amazon S3. *

* * @param extendedS3DestinationUpdate * Describes an update for a destination in Amazon S3. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDestinationRequest withExtendedS3DestinationUpdate(ExtendedS3DestinationUpdate extendedS3DestinationUpdate) { setExtendedS3DestinationUpdate(extendedS3DestinationUpdate); return this; } /** *

* Describes an update for a destination in Amazon Redshift. *

* * @param redshiftDestinationUpdate * Describes an update for a destination in Amazon Redshift. */ public void setRedshiftDestinationUpdate(RedshiftDestinationUpdate redshiftDestinationUpdate) { this.redshiftDestinationUpdate = redshiftDestinationUpdate; } /** *

* Describes an update for a destination in Amazon Redshift. *

* * @return Describes an update for a destination in Amazon Redshift. */ public RedshiftDestinationUpdate getRedshiftDestinationUpdate() { return this.redshiftDestinationUpdate; } /** *

* Describes an update for a destination in Amazon Redshift. *

* * @param redshiftDestinationUpdate * Describes an update for a destination in Amazon Redshift. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDestinationRequest withRedshiftDestinationUpdate(RedshiftDestinationUpdate redshiftDestinationUpdate) { setRedshiftDestinationUpdate(redshiftDestinationUpdate); return this; } /** *

* Describes an update for a destination in Amazon ES. *

* * @param elasticsearchDestinationUpdate * Describes an update for a destination in Amazon ES. */ public void setElasticsearchDestinationUpdate(ElasticsearchDestinationUpdate elasticsearchDestinationUpdate) { this.elasticsearchDestinationUpdate = elasticsearchDestinationUpdate; } /** *

* Describes an update for a destination in Amazon ES. *

* * @return Describes an update for a destination in Amazon ES. */ public ElasticsearchDestinationUpdate getElasticsearchDestinationUpdate() { return this.elasticsearchDestinationUpdate; } /** *

* Describes an update for a destination in Amazon ES. *

* * @param elasticsearchDestinationUpdate * Describes an update for a destination in Amazon ES. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDestinationRequest withElasticsearchDestinationUpdate(ElasticsearchDestinationUpdate elasticsearchDestinationUpdate) { setElasticsearchDestinationUpdate(elasticsearchDestinationUpdate); return this; } /** *

* Describes an update for a destination in Splunk. *

* * @param splunkDestinationUpdate * Describes an update for a destination in Splunk. */ public void setSplunkDestinationUpdate(SplunkDestinationUpdate splunkDestinationUpdate) { this.splunkDestinationUpdate = splunkDestinationUpdate; } /** *

* Describes an update for a destination in Splunk. *

* * @return Describes an update for a destination in Splunk. */ public SplunkDestinationUpdate getSplunkDestinationUpdate() { return this.splunkDestinationUpdate; } /** *

* Describes an update for a destination in Splunk. *

* * @param splunkDestinationUpdate * Describes an update for a destination in Splunk. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateDestinationRequest withSplunkDestinationUpdate(SplunkDestinationUpdate splunkDestinationUpdate) { setSplunkDestinationUpdate(splunkDestinationUpdate); 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 (getDeliveryStreamName() != null) sb.append("DeliveryStreamName: ").append(getDeliveryStreamName()).append(","); if (getCurrentDeliveryStreamVersionId() != null) sb.append("CurrentDeliveryStreamVersionId: ").append(getCurrentDeliveryStreamVersionId()).append(","); if (getDestinationId() != null) sb.append("DestinationId: ").append(getDestinationId()).append(","); if (getS3DestinationUpdate() != null) sb.append("S3DestinationUpdate: ").append(getS3DestinationUpdate()).append(","); if (getExtendedS3DestinationUpdate() != null) sb.append("ExtendedS3DestinationUpdate: ").append(getExtendedS3DestinationUpdate()).append(","); if (getRedshiftDestinationUpdate() != null) sb.append("RedshiftDestinationUpdate: ").append(getRedshiftDestinationUpdate()).append(","); if (getElasticsearchDestinationUpdate() != null) sb.append("ElasticsearchDestinationUpdate: ").append(getElasticsearchDestinationUpdate()).append(","); if (getSplunkDestinationUpdate() != null) sb.append("SplunkDestinationUpdate: ").append(getSplunkDestinationUpdate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateDestinationRequest == false) return false; UpdateDestinationRequest other = (UpdateDestinationRequest) obj; if (other.getDeliveryStreamName() == null ^ this.getDeliveryStreamName() == null) return false; if (other.getDeliveryStreamName() != null && other.getDeliveryStreamName().equals(this.getDeliveryStreamName()) == false) return false; if (other.getCurrentDeliveryStreamVersionId() == null ^ this.getCurrentDeliveryStreamVersionId() == null) return false; if (other.getCurrentDeliveryStreamVersionId() != null && other.getCurrentDeliveryStreamVersionId().equals(this.getCurrentDeliveryStreamVersionId()) == false) return false; if (other.getDestinationId() == null ^ this.getDestinationId() == null) return false; if (other.getDestinationId() != null && other.getDestinationId().equals(this.getDestinationId()) == false) return false; if (other.getS3DestinationUpdate() == null ^ this.getS3DestinationUpdate() == null) return false; if (other.getS3DestinationUpdate() != null && other.getS3DestinationUpdate().equals(this.getS3DestinationUpdate()) == false) return false; if (other.getExtendedS3DestinationUpdate() == null ^ this.getExtendedS3DestinationUpdate() == null) return false; if (other.getExtendedS3DestinationUpdate() != null && other.getExtendedS3DestinationUpdate().equals(this.getExtendedS3DestinationUpdate()) == false) return false; if (other.getRedshiftDestinationUpdate() == null ^ this.getRedshiftDestinationUpdate() == null) return false; if (other.getRedshiftDestinationUpdate() != null && other.getRedshiftDestinationUpdate().equals(this.getRedshiftDestinationUpdate()) == false) return false; if (other.getElasticsearchDestinationUpdate() == null ^ this.getElasticsearchDestinationUpdate() == null) return false; if (other.getElasticsearchDestinationUpdate() != null && other.getElasticsearchDestinationUpdate().equals(this.getElasticsearchDestinationUpdate()) == false) return false; if (other.getSplunkDestinationUpdate() == null ^ this.getSplunkDestinationUpdate() == null) return false; if (other.getSplunkDestinationUpdate() != null && other.getSplunkDestinationUpdate().equals(this.getSplunkDestinationUpdate()) == 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 + ((getCurrentDeliveryStreamVersionId() == null) ? 0 : getCurrentDeliveryStreamVersionId().hashCode()); hashCode = prime * hashCode + ((getDestinationId() == null) ? 0 : getDestinationId().hashCode()); hashCode = prime * hashCode + ((getS3DestinationUpdate() == null) ? 0 : getS3DestinationUpdate().hashCode()); hashCode = prime * hashCode + ((getExtendedS3DestinationUpdate() == null) ? 0 : getExtendedS3DestinationUpdate().hashCode()); hashCode = prime * hashCode + ((getRedshiftDestinationUpdate() == null) ? 0 : getRedshiftDestinationUpdate().hashCode()); hashCode = prime * hashCode + ((getElasticsearchDestinationUpdate() == null) ? 0 : getElasticsearchDestinationUpdate().hashCode()); hashCode = prime * hashCode + ((getSplunkDestinationUpdate() == null) ? 0 : getSplunkDestinationUpdate().hashCode()); return hashCode; } @Override public UpdateDestinationRequest clone() { return (UpdateDestinationRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy