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

com.amazonaws.services.kinesisfirehose.model.SplunkDestinationUpdate 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.778
Show newest version
/*
 * 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.kinesisfirehose.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Describes an update for a destination in Splunk. *

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

* The HTTP Event Collector (HEC) endpoint to which Firehose sends your data. *

*/ private String hECEndpoint; /** *

* This type can be either "Raw" or "Event." *

*/ private String hECEndpointType; /** *

* A GUID that you obtain from your Splunk cluster when you create a new HEC endpoint. *

*/ private String hECToken; /** *

* The amount of time that Firehose waits to receive an acknowledgment from Splunk after it sends data. At the end * of the timeout period, Firehose either tries to send the data again or considers it an error, based on your retry * settings. *

*/ private Integer hECAcknowledgmentTimeoutInSeconds; /** *

* The retry behavior in case Firehose is unable to deliver data to Splunk or if it doesn't receive an * acknowledgment of receipt from Splunk. *

*/ private SplunkRetryOptions retryOptions; /** *

* Specifies how you want Firehose to back up documents to Amazon S3. When set to FailedDocumentsOnly, * Firehose writes any data that could not be indexed to the configured Amazon S3 destination. When set to * AllEvents, Firehose delivers all incoming records to Amazon S3, and also writes failed documents to * Amazon S3. The default value is FailedEventsOnly. *

*

* You can update this backup mode from FailedEventsOnly to AllEvents. You can't update it * from AllEvents to FailedEventsOnly. *

*/ private String s3BackupMode; /** *

* Your update to the configuration of the backup Amazon S3 location. *

*/ private S3DestinationUpdate s3Update; /** *

* The data processing configuration. *

*/ private ProcessingConfiguration processingConfiguration; /** *

* The Amazon CloudWatch logging options for your delivery stream. *

*/ private CloudWatchLoggingOptions cloudWatchLoggingOptions; /** *

* The buffering options. If no value is specified, the default values for Splunk are used. *

*/ private SplunkBufferingHints bufferingHints; /** *

* The configuration that defines how you access secrets for Splunk. *

*/ private SecretsManagerConfiguration secretsManagerConfiguration; /** *

* The HTTP Event Collector (HEC) endpoint to which Firehose sends your data. *

* * @param hECEndpoint * The HTTP Event Collector (HEC) endpoint to which Firehose sends your data. */ public void setHECEndpoint(String hECEndpoint) { this.hECEndpoint = hECEndpoint; } /** *

* The HTTP Event Collector (HEC) endpoint to which Firehose sends your data. *

* * @return The HTTP Event Collector (HEC) endpoint to which Firehose sends your data. */ public String getHECEndpoint() { return this.hECEndpoint; } /** *

* The HTTP Event Collector (HEC) endpoint to which Firehose sends your data. *

* * @param hECEndpoint * The HTTP Event Collector (HEC) endpoint to which Firehose sends your data. * @return Returns a reference to this object so that method calls can be chained together. */ public SplunkDestinationUpdate withHECEndpoint(String hECEndpoint) { setHECEndpoint(hECEndpoint); return this; } /** *

* This type can be either "Raw" or "Event." *

* * @param hECEndpointType * This type can be either "Raw" or "Event." * @see HECEndpointType */ public void setHECEndpointType(String hECEndpointType) { this.hECEndpointType = hECEndpointType; } /** *

* This type can be either "Raw" or "Event." *

* * @return This type can be either "Raw" or "Event." * @see HECEndpointType */ public String getHECEndpointType() { return this.hECEndpointType; } /** *

* This type can be either "Raw" or "Event." *

* * @param hECEndpointType * This type can be either "Raw" or "Event." * @return Returns a reference to this object so that method calls can be chained together. * @see HECEndpointType */ public SplunkDestinationUpdate withHECEndpointType(String hECEndpointType) { setHECEndpointType(hECEndpointType); return this; } /** *

* This type can be either "Raw" or "Event." *

* * @param hECEndpointType * This type can be either "Raw" or "Event." * @return Returns a reference to this object so that method calls can be chained together. * @see HECEndpointType */ public SplunkDestinationUpdate withHECEndpointType(HECEndpointType hECEndpointType) { this.hECEndpointType = hECEndpointType.toString(); return this; } /** *

* A GUID that you obtain from your Splunk cluster when you create a new HEC endpoint. *

* * @param hECToken * A GUID that you obtain from your Splunk cluster when you create a new HEC endpoint. */ public void setHECToken(String hECToken) { this.hECToken = hECToken; } /** *

* A GUID that you obtain from your Splunk cluster when you create a new HEC endpoint. *

* * @return A GUID that you obtain from your Splunk cluster when you create a new HEC endpoint. */ public String getHECToken() { return this.hECToken; } /** *

* A GUID that you obtain from your Splunk cluster when you create a new HEC endpoint. *

* * @param hECToken * A GUID that you obtain from your Splunk cluster when you create a new HEC endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public SplunkDestinationUpdate withHECToken(String hECToken) { setHECToken(hECToken); return this; } /** *

* The amount of time that Firehose waits to receive an acknowledgment from Splunk after it sends data. At the end * of the timeout period, Firehose either tries to send the data again or considers it an error, based on your retry * settings. *

* * @param hECAcknowledgmentTimeoutInSeconds * The amount of time that Firehose waits to receive an acknowledgment from Splunk after it sends data. At * the end of the timeout period, Firehose either tries to send the data again or considers it an error, * based on your retry settings. */ public void setHECAcknowledgmentTimeoutInSeconds(Integer hECAcknowledgmentTimeoutInSeconds) { this.hECAcknowledgmentTimeoutInSeconds = hECAcknowledgmentTimeoutInSeconds; } /** *

* The amount of time that Firehose waits to receive an acknowledgment from Splunk after it sends data. At the end * of the timeout period, Firehose either tries to send the data again or considers it an error, based on your retry * settings. *

* * @return The amount of time that Firehose waits to receive an acknowledgment from Splunk after it sends data. At * the end of the timeout period, Firehose either tries to send the data again or considers it an error, * based on your retry settings. */ public Integer getHECAcknowledgmentTimeoutInSeconds() { return this.hECAcknowledgmentTimeoutInSeconds; } /** *

* The amount of time that Firehose waits to receive an acknowledgment from Splunk after it sends data. At the end * of the timeout period, Firehose either tries to send the data again or considers it an error, based on your retry * settings. *

* * @param hECAcknowledgmentTimeoutInSeconds * The amount of time that Firehose waits to receive an acknowledgment from Splunk after it sends data. At * the end of the timeout period, Firehose either tries to send the data again or considers it an error, * based on your retry settings. * @return Returns a reference to this object so that method calls can be chained together. */ public SplunkDestinationUpdate withHECAcknowledgmentTimeoutInSeconds(Integer hECAcknowledgmentTimeoutInSeconds) { setHECAcknowledgmentTimeoutInSeconds(hECAcknowledgmentTimeoutInSeconds); return this; } /** *

* The retry behavior in case Firehose is unable to deliver data to Splunk or if it doesn't receive an * acknowledgment of receipt from Splunk. *

* * @param retryOptions * The retry behavior in case Firehose is unable to deliver data to Splunk or if it doesn't receive an * acknowledgment of receipt from Splunk. */ public void setRetryOptions(SplunkRetryOptions retryOptions) { this.retryOptions = retryOptions; } /** *

* The retry behavior in case Firehose is unable to deliver data to Splunk or if it doesn't receive an * acknowledgment of receipt from Splunk. *

* * @return The retry behavior in case Firehose is unable to deliver data to Splunk or if it doesn't receive an * acknowledgment of receipt from Splunk. */ public SplunkRetryOptions getRetryOptions() { return this.retryOptions; } /** *

* The retry behavior in case Firehose is unable to deliver data to Splunk or if it doesn't receive an * acknowledgment of receipt from Splunk. *

* * @param retryOptions * The retry behavior in case Firehose is unable to deliver data to Splunk or if it doesn't receive an * acknowledgment of receipt from Splunk. * @return Returns a reference to this object so that method calls can be chained together. */ public SplunkDestinationUpdate withRetryOptions(SplunkRetryOptions retryOptions) { setRetryOptions(retryOptions); return this; } /** *

* Specifies how you want Firehose to back up documents to Amazon S3. When set to FailedDocumentsOnly, * Firehose writes any data that could not be indexed to the configured Amazon S3 destination. When set to * AllEvents, Firehose delivers all incoming records to Amazon S3, and also writes failed documents to * Amazon S3. The default value is FailedEventsOnly. *

*

* You can update this backup mode from FailedEventsOnly to AllEvents. You can't update it * from AllEvents to FailedEventsOnly. *

* * @param s3BackupMode * Specifies how you want Firehose to back up documents to Amazon S3. When set to * FailedDocumentsOnly, Firehose writes any data that could not be indexed to the configured * Amazon S3 destination. When set to AllEvents, Firehose delivers all incoming records to * Amazon S3, and also writes failed documents to Amazon S3. The default value is * FailedEventsOnly.

*

* You can update this backup mode from FailedEventsOnly to AllEvents. You can't * update it from AllEvents to FailedEventsOnly. * @see SplunkS3BackupMode */ public void setS3BackupMode(String s3BackupMode) { this.s3BackupMode = s3BackupMode; } /** *

* Specifies how you want Firehose to back up documents to Amazon S3. When set to FailedDocumentsOnly, * Firehose writes any data that could not be indexed to the configured Amazon S3 destination. When set to * AllEvents, Firehose delivers all incoming records to Amazon S3, and also writes failed documents to * Amazon S3. The default value is FailedEventsOnly. *

*

* You can update this backup mode from FailedEventsOnly to AllEvents. You can't update it * from AllEvents to FailedEventsOnly. *

* * @return Specifies how you want Firehose to back up documents to Amazon S3. When set to * FailedDocumentsOnly, Firehose writes any data that could not be indexed to the configured * Amazon S3 destination. When set to AllEvents, Firehose delivers all incoming records to * Amazon S3, and also writes failed documents to Amazon S3. The default value is * FailedEventsOnly.

*

* You can update this backup mode from FailedEventsOnly to AllEvents. You can't * update it from AllEvents to FailedEventsOnly. * @see SplunkS3BackupMode */ public String getS3BackupMode() { return this.s3BackupMode; } /** *

* Specifies how you want Firehose to back up documents to Amazon S3. When set to FailedDocumentsOnly, * Firehose writes any data that could not be indexed to the configured Amazon S3 destination. When set to * AllEvents, Firehose delivers all incoming records to Amazon S3, and also writes failed documents to * Amazon S3. The default value is FailedEventsOnly. *

*

* You can update this backup mode from FailedEventsOnly to AllEvents. You can't update it * from AllEvents to FailedEventsOnly. *

* * @param s3BackupMode * Specifies how you want Firehose to back up documents to Amazon S3. When set to * FailedDocumentsOnly, Firehose writes any data that could not be indexed to the configured * Amazon S3 destination. When set to AllEvents, Firehose delivers all incoming records to * Amazon S3, and also writes failed documents to Amazon S3. The default value is * FailedEventsOnly.

*

* You can update this backup mode from FailedEventsOnly to AllEvents. You can't * update it from AllEvents to FailedEventsOnly. * @return Returns a reference to this object so that method calls can be chained together. * @see SplunkS3BackupMode */ public SplunkDestinationUpdate withS3BackupMode(String s3BackupMode) { setS3BackupMode(s3BackupMode); return this; } /** *

* Specifies how you want Firehose to back up documents to Amazon S3. When set to FailedDocumentsOnly, * Firehose writes any data that could not be indexed to the configured Amazon S3 destination. When set to * AllEvents, Firehose delivers all incoming records to Amazon S3, and also writes failed documents to * Amazon S3. The default value is FailedEventsOnly. *

*

* You can update this backup mode from FailedEventsOnly to AllEvents. You can't update it * from AllEvents to FailedEventsOnly. *

* * @param s3BackupMode * Specifies how you want Firehose to back up documents to Amazon S3. When set to * FailedDocumentsOnly, Firehose writes any data that could not be indexed to the configured * Amazon S3 destination. When set to AllEvents, Firehose delivers all incoming records to * Amazon S3, and also writes failed documents to Amazon S3. The default value is * FailedEventsOnly.

*

* You can update this backup mode from FailedEventsOnly to AllEvents. You can't * update it from AllEvents to FailedEventsOnly. * @return Returns a reference to this object so that method calls can be chained together. * @see SplunkS3BackupMode */ public SplunkDestinationUpdate withS3BackupMode(SplunkS3BackupMode s3BackupMode) { this.s3BackupMode = s3BackupMode.toString(); return this; } /** *

* Your update to the configuration of the backup Amazon S3 location. *

* * @param s3Update * Your update to the configuration of the backup Amazon S3 location. */ public void setS3Update(S3DestinationUpdate s3Update) { this.s3Update = s3Update; } /** *

* Your update to the configuration of the backup Amazon S3 location. *

* * @return Your update to the configuration of the backup Amazon S3 location. */ public S3DestinationUpdate getS3Update() { return this.s3Update; } /** *

* Your update to the configuration of the backup Amazon S3 location. *

* * @param s3Update * Your update to the configuration of the backup Amazon S3 location. * @return Returns a reference to this object so that method calls can be chained together. */ public SplunkDestinationUpdate withS3Update(S3DestinationUpdate s3Update) { setS3Update(s3Update); return this; } /** *

* The data processing configuration. *

* * @param processingConfiguration * The data processing configuration. */ public void setProcessingConfiguration(ProcessingConfiguration processingConfiguration) { this.processingConfiguration = processingConfiguration; } /** *

* The data processing configuration. *

* * @return The data processing configuration. */ public ProcessingConfiguration getProcessingConfiguration() { return this.processingConfiguration; } /** *

* The data processing configuration. *

* * @param processingConfiguration * The data processing configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public SplunkDestinationUpdate withProcessingConfiguration(ProcessingConfiguration processingConfiguration) { setProcessingConfiguration(processingConfiguration); return this; } /** *

* The Amazon CloudWatch logging options for your delivery stream. *

* * @param cloudWatchLoggingOptions * The Amazon CloudWatch logging options for your delivery stream. */ public void setCloudWatchLoggingOptions(CloudWatchLoggingOptions cloudWatchLoggingOptions) { this.cloudWatchLoggingOptions = cloudWatchLoggingOptions; } /** *

* The Amazon CloudWatch logging options for your delivery stream. *

* * @return The Amazon CloudWatch logging options for your delivery stream. */ public CloudWatchLoggingOptions getCloudWatchLoggingOptions() { return this.cloudWatchLoggingOptions; } /** *

* The Amazon CloudWatch logging options for your delivery stream. *

* * @param cloudWatchLoggingOptions * The Amazon CloudWatch logging options for your delivery stream. * @return Returns a reference to this object so that method calls can be chained together. */ public SplunkDestinationUpdate withCloudWatchLoggingOptions(CloudWatchLoggingOptions cloudWatchLoggingOptions) { setCloudWatchLoggingOptions(cloudWatchLoggingOptions); return this; } /** *

* The buffering options. If no value is specified, the default values for Splunk are used. *

* * @param bufferingHints * The buffering options. If no value is specified, the default values for Splunk are used. */ public void setBufferingHints(SplunkBufferingHints bufferingHints) { this.bufferingHints = bufferingHints; } /** *

* The buffering options. If no value is specified, the default values for Splunk are used. *

* * @return The buffering options. If no value is specified, the default values for Splunk are used. */ public SplunkBufferingHints getBufferingHints() { return this.bufferingHints; } /** *

* The buffering options. If no value is specified, the default values for Splunk are used. *

* * @param bufferingHints * The buffering options. If no value is specified, the default values for Splunk are used. * @return Returns a reference to this object so that method calls can be chained together. */ public SplunkDestinationUpdate withBufferingHints(SplunkBufferingHints bufferingHints) { setBufferingHints(bufferingHints); return this; } /** *

* The configuration that defines how you access secrets for Splunk. *

* * @param secretsManagerConfiguration * The configuration that defines how you access secrets for Splunk. */ public void setSecretsManagerConfiguration(SecretsManagerConfiguration secretsManagerConfiguration) { this.secretsManagerConfiguration = secretsManagerConfiguration; } /** *

* The configuration that defines how you access secrets for Splunk. *

* * @return The configuration that defines how you access secrets for Splunk. */ public SecretsManagerConfiguration getSecretsManagerConfiguration() { return this.secretsManagerConfiguration; } /** *

* The configuration that defines how you access secrets for Splunk. *

* * @param secretsManagerConfiguration * The configuration that defines how you access secrets for Splunk. * @return Returns a reference to this object so that method calls can be chained together. */ public SplunkDestinationUpdate withSecretsManagerConfiguration(SecretsManagerConfiguration secretsManagerConfiguration) { setSecretsManagerConfiguration(secretsManagerConfiguration); 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 (getHECEndpoint() != null) sb.append("HECEndpoint: ").append(getHECEndpoint()).append(","); if (getHECEndpointType() != null) sb.append("HECEndpointType: ").append(getHECEndpointType()).append(","); if (getHECToken() != null) sb.append("HECToken: ").append(getHECToken()).append(","); if (getHECAcknowledgmentTimeoutInSeconds() != null) sb.append("HECAcknowledgmentTimeoutInSeconds: ").append(getHECAcknowledgmentTimeoutInSeconds()).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()).append(","); if (getProcessingConfiguration() != null) sb.append("ProcessingConfiguration: ").append(getProcessingConfiguration()).append(","); if (getCloudWatchLoggingOptions() != null) sb.append("CloudWatchLoggingOptions: ").append(getCloudWatchLoggingOptions()).append(","); if (getBufferingHints() != null) sb.append("BufferingHints: ").append(getBufferingHints()).append(","); if (getSecretsManagerConfiguration() != null) sb.append("SecretsManagerConfiguration: ").append(getSecretsManagerConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SplunkDestinationUpdate == false) return false; SplunkDestinationUpdate other = (SplunkDestinationUpdate) obj; if (other.getHECEndpoint() == null ^ this.getHECEndpoint() == null) return false; if (other.getHECEndpoint() != null && other.getHECEndpoint().equals(this.getHECEndpoint()) == false) return false; if (other.getHECEndpointType() == null ^ this.getHECEndpointType() == null) return false; if (other.getHECEndpointType() != null && other.getHECEndpointType().equals(this.getHECEndpointType()) == false) return false; if (other.getHECToken() == null ^ this.getHECToken() == null) return false; if (other.getHECToken() != null && other.getHECToken().equals(this.getHECToken()) == false) return false; if (other.getHECAcknowledgmentTimeoutInSeconds() == null ^ this.getHECAcknowledgmentTimeoutInSeconds() == null) return false; if (other.getHECAcknowledgmentTimeoutInSeconds() != null && other.getHECAcknowledgmentTimeoutInSeconds().equals(this.getHECAcknowledgmentTimeoutInSeconds()) == 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; if (other.getProcessingConfiguration() == null ^ this.getProcessingConfiguration() == null) return false; if (other.getProcessingConfiguration() != null && other.getProcessingConfiguration().equals(this.getProcessingConfiguration()) == 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.getBufferingHints() == null ^ this.getBufferingHints() == null) return false; if (other.getBufferingHints() != null && other.getBufferingHints().equals(this.getBufferingHints()) == false) return false; if (other.getSecretsManagerConfiguration() == null ^ this.getSecretsManagerConfiguration() == null) return false; if (other.getSecretsManagerConfiguration() != null && other.getSecretsManagerConfiguration().equals(this.getSecretsManagerConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHECEndpoint() == null) ? 0 : getHECEndpoint().hashCode()); hashCode = prime * hashCode + ((getHECEndpointType() == null) ? 0 : getHECEndpointType().hashCode()); hashCode = prime * hashCode + ((getHECToken() == null) ? 0 : getHECToken().hashCode()); hashCode = prime * hashCode + ((getHECAcknowledgmentTimeoutInSeconds() == null) ? 0 : getHECAcknowledgmentTimeoutInSeconds().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()); hashCode = prime * hashCode + ((getProcessingConfiguration() == null) ? 0 : getProcessingConfiguration().hashCode()); hashCode = prime * hashCode + ((getCloudWatchLoggingOptions() == null) ? 0 : getCloudWatchLoggingOptions().hashCode()); hashCode = prime * hashCode + ((getBufferingHints() == null) ? 0 : getBufferingHints().hashCode()); hashCode = prime * hashCode + ((getSecretsManagerConfiguration() == null) ? 0 : getSecretsManagerConfiguration().hashCode()); return hashCode; } @Override public SplunkDestinationUpdate clone() { try { return (SplunkDestinationUpdate) 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.SplunkDestinationUpdateMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy