Class PublishingDestinationReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.guardduty.PublishingDestinationReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PublishingDestinationReference>
- Enclosing interface:
PublishingDestinationReference
@Stability(Stable)
public static final class PublishingDestinationReference.Builder
extends Object
implements software.amazon.jsii.Builder<PublishingDestinationReference>
A builder for
PublishingDestinationReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.detectorId(String detectorId) Sets the value ofPublishingDestinationReference.getDetectorId()publishingDestinationId(String publishingDestinationId) Sets the value ofPublishingDestinationReference.getPublishingDestinationId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detectorId
Sets the value ofPublishingDestinationReference.getDetectorId()- Parameters:
detectorId- The DetectorId of the PublishingDestination resource. This parameter is required.- Returns:
this
-
publishingDestinationId
@Stability(Stable) public PublishingDestinationReference.Builder publishingDestinationId(String publishingDestinationId) Sets the value ofPublishingDestinationReference.getPublishingDestinationId()- Parameters:
publishingDestinationId- The Id of the PublishingDestination resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PublishingDestinationReference>- Returns:
- a new instance of
PublishingDestinationReference - Throws:
NullPointerException- if any required attribute was not provided
-