Class CfnPublishingDestinationMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.guardduty.CfnPublishingDestinationMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPublishingDestinationMixinProps>
- Enclosing interface:
CfnPublishingDestinationMixinProps
@Stability(Stable)
public static final class CfnPublishingDestinationMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPublishingDestinationMixinProps>
A builder for
CfnPublishingDestinationMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationProperties(CfnPublishingDestinationPropsMixin.CFNDestinationPropertiesProperty destinationProperties) Sets the value ofCfnPublishingDestinationMixinProps.getDestinationProperties()destinationProperties(IResolvable destinationProperties) Sets the value ofCfnPublishingDestinationMixinProps.getDestinationProperties()destinationType(String destinationType) Sets the value ofCfnPublishingDestinationMixinProps.getDestinationType()detectorId(String detectorId) Sets the value ofCfnPublishingDestinationMixinProps.getDetectorId()tags(List<? extends CfnPublishingDestinationPropsMixin.TagItemProperty> tags) Sets the value ofCfnPublishingDestinationMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationProperties
@Stability(Stable) public CfnPublishingDestinationMixinProps.Builder destinationProperties(IResolvable destinationProperties) Sets the value ofCfnPublishingDestinationMixinProps.getDestinationProperties()- Parameters:
destinationProperties- Contains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.- Returns:
this
-
destinationProperties
@Stability(Stable) public CfnPublishingDestinationMixinProps.Builder destinationProperties(CfnPublishingDestinationPropsMixin.CFNDestinationPropertiesProperty destinationProperties) Sets the value ofCfnPublishingDestinationMixinProps.getDestinationProperties()- Parameters:
destinationProperties- Contains the Amazon Resource Name (ARN) of the resource to publish to, such as an S3 bucket, and the ARN of the KMS key to use to encrypt published findings.- Returns:
this
-
destinationType
@Stability(Stable) public CfnPublishingDestinationMixinProps.Builder destinationType(String destinationType) Sets the value ofCfnPublishingDestinationMixinProps.getDestinationType()- Parameters:
destinationType- The type of publishing destination. GuardDuty supports Amazon S3 buckets as a publishing destination.- Returns:
this
-
detectorId
Sets the value ofCfnPublishingDestinationMixinProps.getDetectorId()- Parameters:
detectorId- The ID of the GuardDuty detector where the publishing destination exists.- Returns:
this
-
tags
@Stability(Stable) public CfnPublishingDestinationMixinProps.Builder tags(List<? extends CfnPublishingDestinationPropsMixin.TagItemProperty> tags) Sets the value ofCfnPublishingDestinationMixinProps.getTags()- Parameters:
tags- Describes a tag.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPublishingDestinationMixinProps>- Returns:
- a new instance of
CfnPublishingDestinationMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-