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

com.amazonaws.services.kinesisfirehose.model.HttpEndpointDestinationUpdate 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 2016-2021 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.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Updates the specified HTTP endpoint destination. *

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

* Describes the configuration of the HTTP endpoint destination. *

*/ private HttpEndpointConfiguration endpointConfiguration; /** *

* Describes buffering options that can be applied to the data before it is delivered to the HTTPS endpoint * destination. Kinesis Data Firehose teats these options as hints, and it might choose to use more optimal values. * The SizeInMBs and IntervalInSeconds parameters are optional. However, if specify a * value for one of them, you must also provide a value for the other. *

*/ private HttpEndpointBufferingHints bufferingHints; private CloudWatchLoggingOptions cloudWatchLoggingOptions; /** *

* The configuration of the request sent to the HTTP endpoint specified as the destination. *

*/ private HttpEndpointRequestConfiguration requestConfiguration; private ProcessingConfiguration processingConfiguration; /** *

* Kinesis Data Firehose uses this IAM role for all the permissions that the delivery stream needs. *

*/ private String roleARN; /** *

* Describes the retry behavior in case Kinesis Data Firehose is unable to deliver data to the specified HTTP * endpoint destination, or if it doesn't receive a valid acknowledgment of receipt from the specified HTTP endpoint * destination. *

*/ private HttpEndpointRetryOptions retryOptions; /** *

* Describes the S3 bucket backup options for the data that Kinesis Firehose delivers to the HTTP endpoint * destination. You can back up all documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly). *

*/ private String s3BackupMode; private S3DestinationUpdate s3Update; /** *

* Describes the configuration of the HTTP endpoint destination. *

* * @param endpointConfiguration * Describes the configuration of the HTTP endpoint destination. */ public void setEndpointConfiguration(HttpEndpointConfiguration endpointConfiguration) { this.endpointConfiguration = endpointConfiguration; } /** *

* Describes the configuration of the HTTP endpoint destination. *

* * @return Describes the configuration of the HTTP endpoint destination. */ public HttpEndpointConfiguration getEndpointConfiguration() { return this.endpointConfiguration; } /** *

* Describes the configuration of the HTTP endpoint destination. *

* * @param endpointConfiguration * Describes the configuration of the HTTP endpoint destination. * @return Returns a reference to this object so that method calls can be chained together. */ public HttpEndpointDestinationUpdate withEndpointConfiguration(HttpEndpointConfiguration endpointConfiguration) { setEndpointConfiguration(endpointConfiguration); return this; } /** *

* Describes buffering options that can be applied to the data before it is delivered to the HTTPS endpoint * destination. Kinesis Data Firehose teats these options as hints, and it might choose to use more optimal values. * The SizeInMBs and IntervalInSeconds parameters are optional. However, if specify a * value for one of them, you must also provide a value for the other. *

* * @param bufferingHints * Describes buffering options that can be applied to the data before it is delivered to the HTTPS endpoint * destination. Kinesis Data Firehose teats these options as hints, and it might choose to use more optimal * values. The SizeInMBs and IntervalInSeconds parameters are optional. However, if * specify a value for one of them, you must also provide a value for the other. */ public void setBufferingHints(HttpEndpointBufferingHints bufferingHints) { this.bufferingHints = bufferingHints; } /** *

* Describes buffering options that can be applied to the data before it is delivered to the HTTPS endpoint * destination. Kinesis Data Firehose teats these options as hints, and it might choose to use more optimal values. * The SizeInMBs and IntervalInSeconds parameters are optional. However, if specify a * value for one of them, you must also provide a value for the other. *

* * @return Describes buffering options that can be applied to the data before it is delivered to the HTTPS endpoint * destination. Kinesis Data Firehose teats these options as hints, and it might choose to use more optimal * values. The SizeInMBs and IntervalInSeconds parameters are optional. However, * if specify a value for one of them, you must also provide a value for the other. */ public HttpEndpointBufferingHints getBufferingHints() { return this.bufferingHints; } /** *

* Describes buffering options that can be applied to the data before it is delivered to the HTTPS endpoint * destination. Kinesis Data Firehose teats these options as hints, and it might choose to use more optimal values. * The SizeInMBs and IntervalInSeconds parameters are optional. However, if specify a * value for one of them, you must also provide a value for the other. *

* * @param bufferingHints * Describes buffering options that can be applied to the data before it is delivered to the HTTPS endpoint * destination. Kinesis Data Firehose teats these options as hints, and it might choose to use more optimal * values. The SizeInMBs and IntervalInSeconds parameters are optional. However, if * specify a value for one of them, you must also provide a value for the other. * @return Returns a reference to this object so that method calls can be chained together. */ public HttpEndpointDestinationUpdate withBufferingHints(HttpEndpointBufferingHints bufferingHints) { setBufferingHints(bufferingHints); return this; } /** * @param cloudWatchLoggingOptions */ public void setCloudWatchLoggingOptions(CloudWatchLoggingOptions cloudWatchLoggingOptions) { this.cloudWatchLoggingOptions = cloudWatchLoggingOptions; } /** * @return */ public CloudWatchLoggingOptions getCloudWatchLoggingOptions() { return this.cloudWatchLoggingOptions; } /** * @param cloudWatchLoggingOptions * @return Returns a reference to this object so that method calls can be chained together. */ public HttpEndpointDestinationUpdate withCloudWatchLoggingOptions(CloudWatchLoggingOptions cloudWatchLoggingOptions) { setCloudWatchLoggingOptions(cloudWatchLoggingOptions); return this; } /** *

* The configuration of the request sent to the HTTP endpoint specified as the destination. *

* * @param requestConfiguration * The configuration of the request sent to the HTTP endpoint specified as the destination. */ public void setRequestConfiguration(HttpEndpointRequestConfiguration requestConfiguration) { this.requestConfiguration = requestConfiguration; } /** *

* The configuration of the request sent to the HTTP endpoint specified as the destination. *

* * @return The configuration of the request sent to the HTTP endpoint specified as the destination. */ public HttpEndpointRequestConfiguration getRequestConfiguration() { return this.requestConfiguration; } /** *

* The configuration of the request sent to the HTTP endpoint specified as the destination. *

* * @param requestConfiguration * The configuration of the request sent to the HTTP endpoint specified as the destination. * @return Returns a reference to this object so that method calls can be chained together. */ public HttpEndpointDestinationUpdate withRequestConfiguration(HttpEndpointRequestConfiguration requestConfiguration) { setRequestConfiguration(requestConfiguration); return this; } /** * @param processingConfiguration */ public void setProcessingConfiguration(ProcessingConfiguration processingConfiguration) { this.processingConfiguration = processingConfiguration; } /** * @return */ public ProcessingConfiguration getProcessingConfiguration() { return this.processingConfiguration; } /** * @param processingConfiguration * @return Returns a reference to this object so that method calls can be chained together. */ public HttpEndpointDestinationUpdate withProcessingConfiguration(ProcessingConfiguration processingConfiguration) { setProcessingConfiguration(processingConfiguration); return this; } /** *

* Kinesis Data Firehose uses this IAM role for all the permissions that the delivery stream needs. *

* * @param roleARN * Kinesis Data Firehose uses this IAM role for all the permissions that the delivery stream needs. */ public void setRoleARN(String roleARN) { this.roleARN = roleARN; } /** *

* Kinesis Data Firehose uses this IAM role for all the permissions that the delivery stream needs. *

* * @return Kinesis Data Firehose uses this IAM role for all the permissions that the delivery stream needs. */ public String getRoleARN() { return this.roleARN; } /** *

* Kinesis Data Firehose uses this IAM role for all the permissions that the delivery stream needs. *

* * @param roleARN * Kinesis Data Firehose uses this IAM role for all the permissions that the delivery stream needs. * @return Returns a reference to this object so that method calls can be chained together. */ public HttpEndpointDestinationUpdate withRoleARN(String roleARN) { setRoleARN(roleARN); return this; } /** *

* Describes the retry behavior in case Kinesis Data Firehose is unable to deliver data to the specified HTTP * endpoint destination, or if it doesn't receive a valid acknowledgment of receipt from the specified HTTP endpoint * destination. *

* * @param retryOptions * Describes the retry behavior in case Kinesis Data Firehose is unable to deliver data to the specified HTTP * endpoint destination, or if it doesn't receive a valid acknowledgment of receipt from the specified HTTP * endpoint destination. */ public void setRetryOptions(HttpEndpointRetryOptions retryOptions) { this.retryOptions = retryOptions; } /** *

* Describes the retry behavior in case Kinesis Data Firehose is unable to deliver data to the specified HTTP * endpoint destination, or if it doesn't receive a valid acknowledgment of receipt from the specified HTTP endpoint * destination. *

* * @return Describes the retry behavior in case Kinesis Data Firehose is unable to deliver data to the specified * HTTP endpoint destination, or if it doesn't receive a valid acknowledgment of receipt from the specified * HTTP endpoint destination. */ public HttpEndpointRetryOptions getRetryOptions() { return this.retryOptions; } /** *

* Describes the retry behavior in case Kinesis Data Firehose is unable to deliver data to the specified HTTP * endpoint destination, or if it doesn't receive a valid acknowledgment of receipt from the specified HTTP endpoint * destination. *

* * @param retryOptions * Describes the retry behavior in case Kinesis Data Firehose is unable to deliver data to the specified HTTP * endpoint destination, or if it doesn't receive a valid acknowledgment of receipt from the specified HTTP * endpoint destination. * @return Returns a reference to this object so that method calls can be chained together. */ public HttpEndpointDestinationUpdate withRetryOptions(HttpEndpointRetryOptions retryOptions) { setRetryOptions(retryOptions); return this; } /** *

* Describes the S3 bucket backup options for the data that Kinesis Firehose delivers to the HTTP endpoint * destination. You can back up all documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly). *

* * @param s3BackupMode * Describes the S3 bucket backup options for the data that Kinesis Firehose delivers to the HTTP endpoint * destination. You can back up all documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly). * @see HttpEndpointS3BackupMode */ public void setS3BackupMode(String s3BackupMode) { this.s3BackupMode = s3BackupMode; } /** *

* Describes the S3 bucket backup options for the data that Kinesis Firehose delivers to the HTTP endpoint * destination. You can back up all documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly). *

* * @return Describes the S3 bucket backup options for the data that Kinesis Firehose delivers to the HTTP endpoint * destination. You can back up all documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly). * @see HttpEndpointS3BackupMode */ public String getS3BackupMode() { return this.s3BackupMode; } /** *

* Describes the S3 bucket backup options for the data that Kinesis Firehose delivers to the HTTP endpoint * destination. You can back up all documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly). *

* * @param s3BackupMode * Describes the S3 bucket backup options for the data that Kinesis Firehose delivers to the HTTP endpoint * destination. You can back up all documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly). * @return Returns a reference to this object so that method calls can be chained together. * @see HttpEndpointS3BackupMode */ public HttpEndpointDestinationUpdate withS3BackupMode(String s3BackupMode) { setS3BackupMode(s3BackupMode); return this; } /** *

* Describes the S3 bucket backup options for the data that Kinesis Firehose delivers to the HTTP endpoint * destination. You can back up all documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly). *

* * @param s3BackupMode * Describes the S3 bucket backup options for the data that Kinesis Firehose delivers to the HTTP endpoint * destination. You can back up all documents (AllData) or only the documents that Kinesis Data * Firehose could not deliver to the specified HTTP endpoint destination (FailedDataOnly). * @return Returns a reference to this object so that method calls can be chained together. * @see HttpEndpointS3BackupMode */ public HttpEndpointDestinationUpdate withS3BackupMode(HttpEndpointS3BackupMode s3BackupMode) { this.s3BackupMode = s3BackupMode.toString(); return this; } /** * @param s3Update */ public void setS3Update(S3DestinationUpdate s3Update) { this.s3Update = s3Update; } /** * @return */ public S3DestinationUpdate getS3Update() { return this.s3Update; } /** * @param s3Update * @return Returns a reference to this object so that method calls can be chained together. */ public HttpEndpointDestinationUpdate withS3Update(S3DestinationUpdate s3Update) { setS3Update(s3Update); 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 (getEndpointConfiguration() != null) sb.append("EndpointConfiguration: ").append(getEndpointConfiguration()).append(","); if (getBufferingHints() != null) sb.append("BufferingHints: ").append(getBufferingHints()).append(","); if (getCloudWatchLoggingOptions() != null) sb.append("CloudWatchLoggingOptions: ").append(getCloudWatchLoggingOptions()).append(","); if (getRequestConfiguration() != null) sb.append("RequestConfiguration: ").append(getRequestConfiguration()).append(","); if (getProcessingConfiguration() != null) sb.append("ProcessingConfiguration: ").append(getProcessingConfiguration()).append(","); if (getRoleARN() != null) sb.append("RoleARN: ").append(getRoleARN()).append(","); if (getRetryOptions() != null) sb.append("RetryOptions: ").append(getRetryOptions()).append(","); if (getS3BackupMode() != null) sb.append("S3BackupMode: ").append(getS3BackupMode()).append(","); if (getS3Update() != null) sb.append("S3Update: ").append(getS3Update()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof HttpEndpointDestinationUpdate == false) return false; HttpEndpointDestinationUpdate other = (HttpEndpointDestinationUpdate) obj; if (other.getEndpointConfiguration() == null ^ this.getEndpointConfiguration() == null) return false; if (other.getEndpointConfiguration() != null && other.getEndpointConfiguration().equals(this.getEndpointConfiguration()) == false) return false; if (other.getBufferingHints() == null ^ this.getBufferingHints() == null) return false; if (other.getBufferingHints() != null && other.getBufferingHints().equals(this.getBufferingHints()) == false) return false; if (other.getCloudWatchLoggingOptions() == null ^ this.getCloudWatchLoggingOptions() == null) return false; if (other.getCloudWatchLoggingOptions() != null && other.getCloudWatchLoggingOptions().equals(this.getCloudWatchLoggingOptions()) == false) return false; if (other.getRequestConfiguration() == null ^ this.getRequestConfiguration() == null) return false; if (other.getRequestConfiguration() != null && other.getRequestConfiguration().equals(this.getRequestConfiguration()) == 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.getRoleARN() == null ^ this.getRoleARN() == null) return false; if (other.getRoleARN() != null && other.getRoleARN().equals(this.getRoleARN()) == false) return false; if (other.getRetryOptions() == null ^ this.getRetryOptions() == null) return false; if (other.getRetryOptions() != null && other.getRetryOptions().equals(this.getRetryOptions()) == false) return false; if (other.getS3BackupMode() == null ^ this.getS3BackupMode() == null) return false; if (other.getS3BackupMode() != null && other.getS3BackupMode().equals(this.getS3BackupMode()) == false) return false; if (other.getS3Update() == null ^ this.getS3Update() == null) return false; if (other.getS3Update() != null && other.getS3Update().equals(this.getS3Update()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndpointConfiguration() == null) ? 0 : getEndpointConfiguration().hashCode()); hashCode = prime * hashCode + ((getBufferingHints() == null) ? 0 : getBufferingHints().hashCode()); hashCode = prime * hashCode + ((getCloudWatchLoggingOptions() == null) ? 0 : getCloudWatchLoggingOptions().hashCode()); hashCode = prime * hashCode + ((getRequestConfiguration() == null) ? 0 : getRequestConfiguration().hashCode()); hashCode = prime * hashCode + ((getProcessingConfiguration() == null) ? 0 : getProcessingConfiguration().hashCode()); hashCode = prime * hashCode + ((getRoleARN() == null) ? 0 : getRoleARN().hashCode()); hashCode = prime * hashCode + ((getRetryOptions() == null) ? 0 : getRetryOptions().hashCode()); hashCode = prime * hashCode + ((getS3BackupMode() == null) ? 0 : getS3BackupMode().hashCode()); hashCode = prime * hashCode + ((getS3Update() == null) ? 0 : getS3Update().hashCode()); return hashCode; } @Override public HttpEndpointDestinationUpdate clone() { try { return (HttpEndpointDestinationUpdate) 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.kinesisfirehose.model.transform.HttpEndpointDestinationUpdateMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy