/* * Copyright 2018-2023 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; /** *
* The configuration of the HTTP endpoint request. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class HttpEndpointRequestConfiguration implements Serializable, Cloneable, StructuredPojo { /** ** Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to * the destination. For more information, see Content-Encoding in MDN Web * Docs, the official Mozilla documentation. *
*/ private String contentEncoding; /** ** Describes the metadata sent to the HTTP endpoint destination. *
*/ private java.util.List* Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to * the destination. For more information, see Content-Encoding in MDN Web * Docs, the official Mozilla documentation. *
* * @param contentEncoding * Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the * request to the destination. For more information, see Content-Encoding in * MDN Web Docs, the official Mozilla documentation. * @see ContentEncoding */ public void setContentEncoding(String contentEncoding) { this.contentEncoding = contentEncoding; } /** ** Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to * the destination. For more information, see Content-Encoding in MDN Web * Docs, the official Mozilla documentation. *
* * @return Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the * request to the destination. For more information, see Content-Encoding in * MDN Web Docs, the official Mozilla documentation. * @see ContentEncoding */ public String getContentEncoding() { return this.contentEncoding; } /** ** Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to * the destination. For more information, see Content-Encoding in MDN Web * Docs, the official Mozilla documentation. *
* * @param contentEncoding * Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the * request to the destination. For more information, see Content-Encoding in * MDN Web Docs, the official Mozilla documentation. * @return Returns a reference to this object so that method calls can be chained together. * @see ContentEncoding */ public HttpEndpointRequestConfiguration withContentEncoding(String contentEncoding) { setContentEncoding(contentEncoding); return this; } /** ** Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the request to * the destination. For more information, see Content-Encoding in MDN Web * Docs, the official Mozilla documentation. *
* * @param contentEncoding * Kinesis Data Firehose uses the content encoding to compress the body of a request before sending the * request to the destination. For more information, see Content-Encoding in * MDN Web Docs, the official Mozilla documentation. * @return Returns a reference to this object so that method calls can be chained together. * @see ContentEncoding */ public HttpEndpointRequestConfiguration withContentEncoding(ContentEncoding contentEncoding) { this.contentEncoding = contentEncoding.toString(); return this; } /** ** Describes the metadata sent to the HTTP endpoint destination. *
* * @return Describes the metadata sent to the HTTP endpoint destination. */ public java.util.List* Describes the metadata sent to the HTTP endpoint destination. *
* * @param commonAttributes * Describes the metadata sent to the HTTP endpoint destination. */ public void setCommonAttributes(java.util.Collection* Describes the metadata sent to the HTTP endpoint destination. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCommonAttributes(java.util.Collection)} or {@link #withCommonAttributes(java.util.Collection)} if you * want to override the existing values. *
* * @param commonAttributes * Describes the metadata sent to the HTTP endpoint destination. * @return Returns a reference to this object so that method calls can be chained together. */ public HttpEndpointRequestConfiguration withCommonAttributes(HttpEndpointCommonAttribute... commonAttributes) { if (this.commonAttributes == null) { setCommonAttributes(new java.util.ArrayList* Describes the metadata sent to the HTTP endpoint destination. *
* * @param commonAttributes * Describes the metadata sent to the HTTP endpoint destination. * @return Returns a reference to this object so that method calls can be chained together. */ public HttpEndpointRequestConfiguration withCommonAttributes(java.util.Collection