Class CfnDomain.LogPublishingOptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticsearch.CfnDomain.LogPublishingOptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.LogPublishingOptionProperty>
- Enclosing interface:
CfnDomain.LogPublishingOptionProperty
@Stability(Stable)
public static final class CfnDomain.LogPublishingOptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.LogPublishingOptionProperty>
A builder for
CfnDomain.LogPublishingOptionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.cloudWatchLogsLogGroupArn
(String cloudWatchLogsLogGroupArn) Sets the value ofCfnDomain.LogPublishingOptionProperty.getCloudWatchLogsLogGroupArn()
Sets the value ofCfnDomain.LogPublishingOptionProperty.getEnabled()
enabled
(IResolvable enabled) Sets the value ofCfnDomain.LogPublishingOptionProperty.getEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cloudWatchLogsLogGroupArn
@Stability(Stable) public CfnDomain.LogPublishingOptionProperty.Builder cloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn) Sets the value ofCfnDomain.LogPublishingOptionProperty.getCloudWatchLogsLogGroupArn()
- Parameters:
cloudWatchLogsLogGroupArn
- Specifies the CloudWatch log group to publish to. Required if you enable log publishing for the domain.- Returns:
this
-
enabled
Sets the value ofCfnDomain.LogPublishingOptionProperty.getEnabled()
- Parameters:
enabled
- Iftrue
, enables the publishing of logs to CloudWatch. Default:false
.- Returns:
this
-
enabled
@Stability(Stable) public CfnDomain.LogPublishingOptionProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnDomain.LogPublishingOptionProperty.getEnabled()
- Parameters:
enabled
- Iftrue
, enables the publishing of logs to CloudWatch. Default:false
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomain.LogPublishingOptionProperty>
- Returns:
- a new instance of
CfnDomain.LogPublishingOptionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-