Class CfnDiscovererProps.Builder
java.lang.Object
software.amazon.awscdk.services.eventschemas.CfnDiscovererProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDiscovererProps>
- Enclosing interface:
CfnDiscovererProps
@Stability(Stable)
public static final class CfnDiscovererProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDiscovererProps>
A builder for
CfnDiscovererProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.crossAccount
(Boolean crossAccount) Sets the value ofCfnDiscovererProps.getCrossAccount()
crossAccount
(IResolvable crossAccount) Sets the value ofCfnDiscovererProps.getCrossAccount()
description
(String description) Sets the value ofCfnDiscovererProps.getDescription()
Sets the value ofCfnDiscovererProps.getSourceArn()
tags
(List<? extends CfnDiscoverer.TagsEntryProperty> tags) Sets the value ofCfnDiscovererProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourceArn
Sets the value ofCfnDiscovererProps.getSourceArn()
- Parameters:
sourceArn
- The ARN of the event bus. This parameter is required.- Returns:
this
-
crossAccount
Sets the value ofCfnDiscovererProps.getCrossAccount()
- Parameters:
crossAccount
- Allows for the discovery of the event schemas that are sent to the event bus from another account.- Returns:
this
-
crossAccount
Sets the value ofCfnDiscovererProps.getCrossAccount()
- Parameters:
crossAccount
- Allows for the discovery of the event schemas that are sent to the event bus from another account.- Returns:
this
-
description
Sets the value ofCfnDiscovererProps.getDescription()
- Parameters:
description
- A description for the discoverer.- Returns:
this
-
tags
@Stability(Stable) public CfnDiscovererProps.Builder tags(List<? extends CfnDiscoverer.TagsEntryProperty> tags) Sets the value ofCfnDiscovererProps.getTags()
- Parameters:
tags
- Tags associated with the resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDiscovererProps>
- Returns:
- a new instance of
CfnDiscovererProps
- Throws:
NullPointerException
- if any required attribute was not provided
-