Class CfnEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointProps>
- Enclosing interface:
- CfnEndpointProps
@Stability(Stable)
public static final class CfnEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointProps>
A builder for
CfnEndpointProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnEndpointProps.getDescription()
eventBuses
(List<? extends Object> eventBuses) Sets the value ofCfnEndpointProps.getEventBuses()
eventBuses
(IResolvable eventBuses) Sets the value ofCfnEndpointProps.getEventBuses()
Sets the value ofCfnEndpointProps.getName()
replicationConfig
(IResolvable replicationConfig) Sets the value ofCfnEndpointProps.getReplicationConfig()
replicationConfig
(CfnEndpoint.ReplicationConfigProperty replicationConfig) Sets the value ofCfnEndpointProps.getReplicationConfig()
Sets the value ofCfnEndpointProps.getRoleArn()
routingConfig
(IResolvable routingConfig) Sets the value ofCfnEndpointProps.getRoutingConfig()
routingConfig
(CfnEndpoint.RoutingConfigProperty routingConfig) Sets the value ofCfnEndpointProps.getRoutingConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventBuses
Sets the value ofCfnEndpointProps.getEventBuses()
- Parameters:
eventBuses
- The event buses being used by the endpoint. This parameter is required. Exactly :2
- Returns:
this
-
eventBuses
Sets the value ofCfnEndpointProps.getEventBuses()
- Parameters:
eventBuses
- The event buses being used by the endpoint. This parameter is required. Exactly :2
- Returns:
this
-
routingConfig
Sets the value ofCfnEndpointProps.getRoutingConfig()
- Parameters:
routingConfig
- The routing configuration of the endpoint. This parameter is required.- Returns:
this
-
routingConfig
@Stability(Stable) public CfnEndpointProps.Builder routingConfig(CfnEndpoint.RoutingConfigProperty routingConfig) Sets the value ofCfnEndpointProps.getRoutingConfig()
- Parameters:
routingConfig
- The routing configuration of the endpoint. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnEndpointProps.getDescription()
- Parameters:
description
- A description for the endpoint.- Returns:
this
-
name
Sets the value ofCfnEndpointProps.getName()
- Parameters:
name
- The name of the endpoint.- Returns:
this
-
replicationConfig
Sets the value ofCfnEndpointProps.getReplicationConfig()
- Parameters:
replicationConfig
- Whether event replication was enabled or disabled for this endpoint. The default state isENABLED
which means you must supply aRoleArn
. If you don't have aRoleArn
or you don't want event replication enabled, set the state toDISABLED
.- Returns:
this
-
replicationConfig
@Stability(Stable) public CfnEndpointProps.Builder replicationConfig(CfnEndpoint.ReplicationConfigProperty replicationConfig) Sets the value ofCfnEndpointProps.getReplicationConfig()
- Parameters:
replicationConfig
- Whether event replication was enabled or disabled for this endpoint. The default state isENABLED
which means you must supply aRoleArn
. If you don't have aRoleArn
or you don't want event replication enabled, set the state toDISABLED
.- Returns:
this
-
roleArn
Sets the value ofCfnEndpointProps.getRoleArn()
- Parameters:
roleArn
- The ARN of the role used by event replication for the endpoint.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnEndpointProps>
- Returns:
- a new instance of
CfnEndpointProps
- Throws:
NullPointerException
- if any required attribute was not provided
-