Class CfnCacheCluster.LogDeliveryConfigurationRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticache.CfnCacheCluster.LogDeliveryConfigurationRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCacheCluster.LogDeliveryConfigurationRequestProperty>
- Enclosing interface:
CfnCacheCluster.LogDeliveryConfigurationRequestProperty
@Stability(Stable)
public static final class CfnCacheCluster.LogDeliveryConfigurationRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCacheCluster.LogDeliveryConfigurationRequestProperty>
A builder for
CfnCacheCluster.LogDeliveryConfigurationRequestProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.destinationDetails
(IResolvable destinationDetails) destinationDetails
(CfnCacheCluster.DestinationDetailsProperty destinationDetails) destinationType
(String destinationType) Sets the value ofCfnCacheCluster.LogDeliveryConfigurationRequestProperty.getLogFormat()
Sets the value ofCfnCacheCluster.LogDeliveryConfigurationRequestProperty.getLogType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationDetails
@Stability(Stable) public CfnCacheCluster.LogDeliveryConfigurationRequestProperty.Builder destinationDetails(IResolvable destinationDetails) - Parameters:
destinationDetails
- Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination. This parameter is required.- Returns:
this
-
destinationDetails
@Stability(Stable) public CfnCacheCluster.LogDeliveryConfigurationRequestProperty.Builder destinationDetails(CfnCacheCluster.DestinationDetailsProperty destinationDetails) - Parameters:
destinationDetails
- Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination. This parameter is required.- Returns:
this
-
destinationType
@Stability(Stable) public CfnCacheCluster.LogDeliveryConfigurationRequestProperty.Builder destinationType(String destinationType) - Parameters:
destinationType
- Specify either CloudWatch Logs or Kinesis Data Firehose as the destination type. This parameter is required. Valid values are eithercloudwatch-logs
orkinesis-firehose
.- Returns:
this
-
logFormat
@Stability(Stable) public CfnCacheCluster.LogDeliveryConfigurationRequestProperty.Builder logFormat(String logFormat) Sets the value ofCfnCacheCluster.LogDeliveryConfigurationRequestProperty.getLogFormat()
- Parameters:
logFormat
- Valid values are eitherjson
ortext
. This parameter is required.- Returns:
this
-
logType
@Stability(Stable) public CfnCacheCluster.LogDeliveryConfigurationRequestProperty.Builder logType(String logType) Sets the value ofCfnCacheCluster.LogDeliveryConfigurationRequestProperty.getLogType()
- Parameters:
logType
- Valid value is eitherslow-log
, which refers to slow-log orengine-log
. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCacheCluster.LogDeliveryConfigurationRequestProperty>
- Returns:
- a new instance of
CfnCacheCluster.LogDeliveryConfigurationRequestProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-