This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-firehose/include/aws/firehose/model/SplunkDestinationUpdate.h

444 lines
19 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/firehose/Firehose_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/firehose/model/HECEndpointType.h>
#include <aws/firehose/model/SplunkRetryOptions.h>
#include <aws/firehose/model/SplunkS3BackupMode.h>
#include <aws/firehose/model/S3DestinationUpdate.h>
#include <aws/firehose/model/ProcessingConfiguration.h>
#include <aws/firehose/model/CloudWatchLoggingOptions.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Firehose
{
namespace Model
{
/**
* <p>Describes an update for a destination in Splunk.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/firehose-2015-08-04/SplunkDestinationUpdate">AWS
* API Reference</a></p>
*/
class AWS_FIREHOSE_API SplunkDestinationUpdate
{
public:
SplunkDestinationUpdate();
SplunkDestinationUpdate(Aws::Utils::Json::JsonView jsonValue);
SplunkDestinationUpdate& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The HTTP Event Collector (HEC) endpoint to which Kinesis Data Firehose sends
* your data.</p>
*/
inline const Aws::String& GetHECEndpoint() const{ return m_hECEndpoint; }
/**
* <p>The HTTP Event Collector (HEC) endpoint to which Kinesis Data Firehose sends
* your data.</p>
*/
inline bool HECEndpointHasBeenSet() const { return m_hECEndpointHasBeenSet; }
/**
* <p>The HTTP Event Collector (HEC) endpoint to which Kinesis Data Firehose sends
* your data.</p>
*/
inline void SetHECEndpoint(const Aws::String& value) { m_hECEndpointHasBeenSet = true; m_hECEndpoint = value; }
/**
* <p>The HTTP Event Collector (HEC) endpoint to which Kinesis Data Firehose sends
* your data.</p>
*/
inline void SetHECEndpoint(Aws::String&& value) { m_hECEndpointHasBeenSet = true; m_hECEndpoint = std::move(value); }
/**
* <p>The HTTP Event Collector (HEC) endpoint to which Kinesis Data Firehose sends
* your data.</p>
*/
inline void SetHECEndpoint(const char* value) { m_hECEndpointHasBeenSet = true; m_hECEndpoint.assign(value); }
/**
* <p>The HTTP Event Collector (HEC) endpoint to which Kinesis Data Firehose sends
* your data.</p>
*/
inline SplunkDestinationUpdate& WithHECEndpoint(const Aws::String& value) { SetHECEndpoint(value); return *this;}
/**
* <p>The HTTP Event Collector (HEC) endpoint to which Kinesis Data Firehose sends
* your data.</p>
*/
inline SplunkDestinationUpdate& WithHECEndpoint(Aws::String&& value) { SetHECEndpoint(std::move(value)); return *this;}
/**
* <p>The HTTP Event Collector (HEC) endpoint to which Kinesis Data Firehose sends
* your data.</p>
*/
inline SplunkDestinationUpdate& WithHECEndpoint(const char* value) { SetHECEndpoint(value); return *this;}
/**
* <p>This type can be either "Raw" or "Event."</p>
*/
inline const HECEndpointType& GetHECEndpointType() const{ return m_hECEndpointType; }
/**
* <p>This type can be either "Raw" or "Event."</p>
*/
inline bool HECEndpointTypeHasBeenSet() const { return m_hECEndpointTypeHasBeenSet; }
/**
* <p>This type can be either "Raw" or "Event."</p>
*/
inline void SetHECEndpointType(const HECEndpointType& value) { m_hECEndpointTypeHasBeenSet = true; m_hECEndpointType = value; }
/**
* <p>This type can be either "Raw" or "Event."</p>
*/
inline void SetHECEndpointType(HECEndpointType&& value) { m_hECEndpointTypeHasBeenSet = true; m_hECEndpointType = std::move(value); }
/**
* <p>This type can be either "Raw" or "Event."</p>
*/
inline SplunkDestinationUpdate& WithHECEndpointType(const HECEndpointType& value) { SetHECEndpointType(value); return *this;}
/**
* <p>This type can be either "Raw" or "Event."</p>
*/
inline SplunkDestinationUpdate& WithHECEndpointType(HECEndpointType&& value) { SetHECEndpointType(std::move(value)); return *this;}
/**
* <p>A GUID that you obtain from your Splunk cluster when you create a new HEC
* endpoint.</p>
*/
inline const Aws::String& GetHECToken() const{ return m_hECToken; }
/**
* <p>A GUID that you obtain from your Splunk cluster when you create a new HEC
* endpoint.</p>
*/
inline bool HECTokenHasBeenSet() const { return m_hECTokenHasBeenSet; }
/**
* <p>A GUID that you obtain from your Splunk cluster when you create a new HEC
* endpoint.</p>
*/
inline void SetHECToken(const Aws::String& value) { m_hECTokenHasBeenSet = true; m_hECToken = value; }
/**
* <p>A GUID that you obtain from your Splunk cluster when you create a new HEC
* endpoint.</p>
*/
inline void SetHECToken(Aws::String&& value) { m_hECTokenHasBeenSet = true; m_hECToken = std::move(value); }
/**
* <p>A GUID that you obtain from your Splunk cluster when you create a new HEC
* endpoint.</p>
*/
inline void SetHECToken(const char* value) { m_hECTokenHasBeenSet = true; m_hECToken.assign(value); }
/**
* <p>A GUID that you obtain from your Splunk cluster when you create a new HEC
* endpoint.</p>
*/
inline SplunkDestinationUpdate& WithHECToken(const Aws::String& value) { SetHECToken(value); return *this;}
/**
* <p>A GUID that you obtain from your Splunk cluster when you create a new HEC
* endpoint.</p>
*/
inline SplunkDestinationUpdate& WithHECToken(Aws::String&& value) { SetHECToken(std::move(value)); return *this;}
/**
* <p>A GUID that you obtain from your Splunk cluster when you create a new HEC
* endpoint.</p>
*/
inline SplunkDestinationUpdate& WithHECToken(const char* value) { SetHECToken(value); return *this;}
/**
* <p>The amount of time that Kinesis Data Firehose waits to receive an
* acknowledgment from Splunk after it sends data. At the end of the timeout
* period, Kinesis Data Firehose either tries to send the data again or considers
* it an error, based on your retry settings.</p>
*/
inline int GetHECAcknowledgmentTimeoutInSeconds() const{ return m_hECAcknowledgmentTimeoutInSeconds; }
/**
* <p>The amount of time that Kinesis Data Firehose waits to receive an
* acknowledgment from Splunk after it sends data. At the end of the timeout
* period, Kinesis Data Firehose either tries to send the data again or considers
* it an error, based on your retry settings.</p>
*/
inline bool HECAcknowledgmentTimeoutInSecondsHasBeenSet() const { return m_hECAcknowledgmentTimeoutInSecondsHasBeenSet; }
/**
* <p>The amount of time that Kinesis Data Firehose waits to receive an
* acknowledgment from Splunk after it sends data. At the end of the timeout
* period, Kinesis Data Firehose either tries to send the data again or considers
* it an error, based on your retry settings.</p>
*/
inline void SetHECAcknowledgmentTimeoutInSeconds(int value) { m_hECAcknowledgmentTimeoutInSecondsHasBeenSet = true; m_hECAcknowledgmentTimeoutInSeconds = value; }
/**
* <p>The amount of time that Kinesis Data Firehose waits to receive an
* acknowledgment from Splunk after it sends data. At the end of the timeout
* period, Kinesis Data Firehose either tries to send the data again or considers
* it an error, based on your retry settings.</p>
*/
inline SplunkDestinationUpdate& WithHECAcknowledgmentTimeoutInSeconds(int value) { SetHECAcknowledgmentTimeoutInSeconds(value); return *this;}
/**
* <p>The retry behavior in case Kinesis Data Firehose is unable to deliver data to
* Splunk or if it doesn't receive an acknowledgment of receipt from Splunk.</p>
*/
inline const SplunkRetryOptions& GetRetryOptions() const{ return m_retryOptions; }
/**
* <p>The retry behavior in case Kinesis Data Firehose is unable to deliver data to
* Splunk or if it doesn't receive an acknowledgment of receipt from Splunk.</p>
*/
inline bool RetryOptionsHasBeenSet() const { return m_retryOptionsHasBeenSet; }
/**
* <p>The retry behavior in case Kinesis Data Firehose is unable to deliver data to
* Splunk or if it doesn't receive an acknowledgment of receipt from Splunk.</p>
*/
inline void SetRetryOptions(const SplunkRetryOptions& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = value; }
/**
* <p>The retry behavior in case Kinesis Data Firehose is unable to deliver data to
* Splunk or if it doesn't receive an acknowledgment of receipt from Splunk.</p>
*/
inline void SetRetryOptions(SplunkRetryOptions&& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = std::move(value); }
/**
* <p>The retry behavior in case Kinesis Data Firehose is unable to deliver data to
* Splunk or if it doesn't receive an acknowledgment of receipt from Splunk.</p>
*/
inline SplunkDestinationUpdate& WithRetryOptions(const SplunkRetryOptions& value) { SetRetryOptions(value); return *this;}
/**
* <p>The retry behavior in case Kinesis Data Firehose is unable to deliver data to
* Splunk or if it doesn't receive an acknowledgment of receipt from Splunk.</p>
*/
inline SplunkDestinationUpdate& WithRetryOptions(SplunkRetryOptions&& value) { SetRetryOptions(std::move(value)); return *this;}
/**
* <p>Specifies how you want Kinesis Data Firehose to back up documents to Amazon
* S3. When set to <code>FailedDocumentsOnly</code>, Kinesis Data Firehose writes
* any data that could not be indexed to the configured Amazon S3 destination. When
* set to <code>AllEvents</code>, Kinesis Data Firehose delivers all incoming
* records to Amazon S3, and also writes failed documents to Amazon S3. The default
* value is <code>FailedEventsOnly</code>.</p> <p>You can update this backup mode
* from <code>FailedEventsOnly</code> to <code>AllEvents</code>. You can't update
* it from <code>AllEvents</code> to <code>FailedEventsOnly</code>.</p>
*/
inline const SplunkS3BackupMode& GetS3BackupMode() const{ return m_s3BackupMode; }
/**
* <p>Specifies how you want Kinesis Data Firehose to back up documents to Amazon
* S3. When set to <code>FailedDocumentsOnly</code>, Kinesis Data Firehose writes
* any data that could not be indexed to the configured Amazon S3 destination. When
* set to <code>AllEvents</code>, Kinesis Data Firehose delivers all incoming
* records to Amazon S3, and also writes failed documents to Amazon S3. The default
* value is <code>FailedEventsOnly</code>.</p> <p>You can update this backup mode
* from <code>FailedEventsOnly</code> to <code>AllEvents</code>. You can't update
* it from <code>AllEvents</code> to <code>FailedEventsOnly</code>.</p>
*/
inline bool S3BackupModeHasBeenSet() const { return m_s3BackupModeHasBeenSet; }
/**
* <p>Specifies how you want Kinesis Data Firehose to back up documents to Amazon
* S3. When set to <code>FailedDocumentsOnly</code>, Kinesis Data Firehose writes
* any data that could not be indexed to the configured Amazon S3 destination. When
* set to <code>AllEvents</code>, Kinesis Data Firehose delivers all incoming
* records to Amazon S3, and also writes failed documents to Amazon S3. The default
* value is <code>FailedEventsOnly</code>.</p> <p>You can update this backup mode
* from <code>FailedEventsOnly</code> to <code>AllEvents</code>. You can't update
* it from <code>AllEvents</code> to <code>FailedEventsOnly</code>.</p>
*/
inline void SetS3BackupMode(const SplunkS3BackupMode& value) { m_s3BackupModeHasBeenSet = true; m_s3BackupMode = value; }
/**
* <p>Specifies how you want Kinesis Data Firehose to back up documents to Amazon
* S3. When set to <code>FailedDocumentsOnly</code>, Kinesis Data Firehose writes
* any data that could not be indexed to the configured Amazon S3 destination. When
* set to <code>AllEvents</code>, Kinesis Data Firehose delivers all incoming
* records to Amazon S3, and also writes failed documents to Amazon S3. The default
* value is <code>FailedEventsOnly</code>.</p> <p>You can update this backup mode
* from <code>FailedEventsOnly</code> to <code>AllEvents</code>. You can't update
* it from <code>AllEvents</code> to <code>FailedEventsOnly</code>.</p>
*/
inline void SetS3BackupMode(SplunkS3BackupMode&& value) { m_s3BackupModeHasBeenSet = true; m_s3BackupMode = std::move(value); }
/**
* <p>Specifies how you want Kinesis Data Firehose to back up documents to Amazon
* S3. When set to <code>FailedDocumentsOnly</code>, Kinesis Data Firehose writes
* any data that could not be indexed to the configured Amazon S3 destination. When
* set to <code>AllEvents</code>, Kinesis Data Firehose delivers all incoming
* records to Amazon S3, and also writes failed documents to Amazon S3. The default
* value is <code>FailedEventsOnly</code>.</p> <p>You can update this backup mode
* from <code>FailedEventsOnly</code> to <code>AllEvents</code>. You can't update
* it from <code>AllEvents</code> to <code>FailedEventsOnly</code>.</p>
*/
inline SplunkDestinationUpdate& WithS3BackupMode(const SplunkS3BackupMode& value) { SetS3BackupMode(value); return *this;}
/**
* <p>Specifies how you want Kinesis Data Firehose to back up documents to Amazon
* S3. When set to <code>FailedDocumentsOnly</code>, Kinesis Data Firehose writes
* any data that could not be indexed to the configured Amazon S3 destination. When
* set to <code>AllEvents</code>, Kinesis Data Firehose delivers all incoming
* records to Amazon S3, and also writes failed documents to Amazon S3. The default
* value is <code>FailedEventsOnly</code>.</p> <p>You can update this backup mode
* from <code>FailedEventsOnly</code> to <code>AllEvents</code>. You can't update
* it from <code>AllEvents</code> to <code>FailedEventsOnly</code>.</p>
*/
inline SplunkDestinationUpdate& WithS3BackupMode(SplunkS3BackupMode&& value) { SetS3BackupMode(std::move(value)); return *this;}
/**
* <p>Your update to the configuration of the backup Amazon S3 location.</p>
*/
inline const S3DestinationUpdate& GetS3Update() const{ return m_s3Update; }
/**
* <p>Your update to the configuration of the backup Amazon S3 location.</p>
*/
inline bool S3UpdateHasBeenSet() const { return m_s3UpdateHasBeenSet; }
/**
* <p>Your update to the configuration of the backup Amazon S3 location.</p>
*/
inline void SetS3Update(const S3DestinationUpdate& value) { m_s3UpdateHasBeenSet = true; m_s3Update = value; }
/**
* <p>Your update to the configuration of the backup Amazon S3 location.</p>
*/
inline void SetS3Update(S3DestinationUpdate&& value) { m_s3UpdateHasBeenSet = true; m_s3Update = std::move(value); }
/**
* <p>Your update to the configuration of the backup Amazon S3 location.</p>
*/
inline SplunkDestinationUpdate& WithS3Update(const S3DestinationUpdate& value) { SetS3Update(value); return *this;}
/**
* <p>Your update to the configuration of the backup Amazon S3 location.</p>
*/
inline SplunkDestinationUpdate& WithS3Update(S3DestinationUpdate&& value) { SetS3Update(std::move(value)); return *this;}
/**
* <p>The data processing configuration.</p>
*/
inline const ProcessingConfiguration& GetProcessingConfiguration() const{ return m_processingConfiguration; }
/**
* <p>The data processing configuration.</p>
*/
inline bool ProcessingConfigurationHasBeenSet() const { return m_processingConfigurationHasBeenSet; }
/**
* <p>The data processing configuration.</p>
*/
inline void SetProcessingConfiguration(const ProcessingConfiguration& value) { m_processingConfigurationHasBeenSet = true; m_processingConfiguration = value; }
/**
* <p>The data processing configuration.</p>
*/
inline void SetProcessingConfiguration(ProcessingConfiguration&& value) { m_processingConfigurationHasBeenSet = true; m_processingConfiguration = std::move(value); }
/**
* <p>The data processing configuration.</p>
*/
inline SplunkDestinationUpdate& WithProcessingConfiguration(const ProcessingConfiguration& value) { SetProcessingConfiguration(value); return *this;}
/**
* <p>The data processing configuration.</p>
*/
inline SplunkDestinationUpdate& WithProcessingConfiguration(ProcessingConfiguration&& value) { SetProcessingConfiguration(std::move(value)); return *this;}
/**
* <p>The Amazon CloudWatch logging options for your delivery stream.</p>
*/
inline const CloudWatchLoggingOptions& GetCloudWatchLoggingOptions() const{ return m_cloudWatchLoggingOptions; }
/**
* <p>The Amazon CloudWatch logging options for your delivery stream.</p>
*/
inline bool CloudWatchLoggingOptionsHasBeenSet() const { return m_cloudWatchLoggingOptionsHasBeenSet; }
/**
* <p>The Amazon CloudWatch logging options for your delivery stream.</p>
*/
inline void SetCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; }
/**
* <p>The Amazon CloudWatch logging options for your delivery stream.</p>
*/
inline void SetCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = std::move(value); }
/**
* <p>The Amazon CloudWatch logging options for your delivery stream.</p>
*/
inline SplunkDestinationUpdate& WithCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { SetCloudWatchLoggingOptions(value); return *this;}
/**
* <p>The Amazon CloudWatch logging options for your delivery stream.</p>
*/
inline SplunkDestinationUpdate& WithCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { SetCloudWatchLoggingOptions(std::move(value)); return *this;}
private:
Aws::String m_hECEndpoint;
bool m_hECEndpointHasBeenSet;
HECEndpointType m_hECEndpointType;
bool m_hECEndpointTypeHasBeenSet;
Aws::String m_hECToken;
bool m_hECTokenHasBeenSet;
int m_hECAcknowledgmentTimeoutInSeconds;
bool m_hECAcknowledgmentTimeoutInSecondsHasBeenSet;
SplunkRetryOptions m_retryOptions;
bool m_retryOptionsHasBeenSet;
SplunkS3BackupMode m_s3BackupMode;
bool m_s3BackupModeHasBeenSet;
S3DestinationUpdate m_s3Update;
bool m_s3UpdateHasBeenSet;
ProcessingConfiguration m_processingConfiguration;
bool m_processingConfigurationHasBeenSet;
CloudWatchLoggingOptions m_cloudWatchLoggingOptions;
bool m_cloudWatchLoggingOptionsHasBeenSet;
};
} // namespace Model
} // namespace Firehose
} // namespace Aws