Package services.osis
Class CfnPipeline.LogPublishingOptionsProperty.Builder
java.lang.Object
services.osis.CfnPipeline.LogPublishingOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipeline.LogPublishingOptionsProperty>
- Enclosing interface:
CfnPipeline.LogPublishingOptionsProperty
@Stability(Stable)
public static final class CfnPipeline.LogPublishingOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipeline.LogPublishingOptionsProperty>
A builder for
CfnPipeline.LogPublishingOptionsProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cloudWatchLogDestination
(CfnPipeline.CloudWatchLogDestinationProperty cloudWatchLogDestination) Sets the value ofCfnPipeline.LogPublishingOptionsProperty.getCloudWatchLogDestination()
cloudWatchLogDestination
(IResolvable cloudWatchLogDestination) Sets the value ofCfnPipeline.LogPublishingOptionsProperty.getCloudWatchLogDestination()
isLoggingEnabled
(Boolean isLoggingEnabled) Sets the value ofCfnPipeline.LogPublishingOptionsProperty.getIsLoggingEnabled()
isLoggingEnabled
(IResolvable isLoggingEnabled) Sets the value ofCfnPipeline.LogPublishingOptionsProperty.getIsLoggingEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchLogDestination
@Stability(Stable) public CfnPipeline.LogPublishingOptionsProperty.Builder cloudWatchLogDestination(IResolvable cloudWatchLogDestination) Sets the value ofCfnPipeline.LogPublishingOptionsProperty.getCloudWatchLogDestination()
- Parameters:
cloudWatchLogDestination
- The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required ifIsLoggingEnabled
is set totrue
.- Returns:
this
-
cloudWatchLogDestination
@Stability(Stable) public CfnPipeline.LogPublishingOptionsProperty.Builder cloudWatchLogDestination(CfnPipeline.CloudWatchLogDestinationProperty cloudWatchLogDestination) Sets the value ofCfnPipeline.LogPublishingOptionsProperty.getCloudWatchLogDestination()
- Parameters:
cloudWatchLogDestination
- The destination for OpenSearch Ingestion logs sent to Amazon CloudWatch Logs. This parameter is required ifIsLoggingEnabled
is set totrue
.- Returns:
this
-
isLoggingEnabled
@Stability(Stable) public CfnPipeline.LogPublishingOptionsProperty.Builder isLoggingEnabled(Boolean isLoggingEnabled) Sets the value ofCfnPipeline.LogPublishingOptionsProperty.getIsLoggingEnabled()
- Parameters:
isLoggingEnabled
- Whether logs should be published.- Returns:
this
-
isLoggingEnabled
@Stability(Stable) public CfnPipeline.LogPublishingOptionsProperty.Builder isLoggingEnabled(IResolvable isLoggingEnabled) Sets the value ofCfnPipeline.LogPublishingOptionsProperty.getIsLoggingEnabled()
- Parameters:
isLoggingEnabled
- Whether logs should be published.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipeline.LogPublishingOptionsProperty>
- Returns:
- a new instance of
CfnPipeline.LogPublishingOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-