Class CfnEndpoint.Builder

java.lang.Object
software.amazon.awscdk.services.events.CfnEndpoint.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpoint>
Enclosing class:
CfnEndpoint

@Stability(Stable) public static final class CfnEndpoint.Builder extends Object implements software.amazon.jsii.Builder<CfnEndpoint>
A fluent builder for CfnEndpoint.
  • Method Details

    • create

      @Stability(Stable) public static CfnEndpoint.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnEndpoint.Builder.
    • eventBuses

      @Stability(Stable) public CfnEndpoint.Builder eventBuses(IResolvable eventBuses)
      The event buses being used by the endpoint.

      Exactly : 2

      Parameters:
      eventBuses - The event buses being used by the endpoint. This parameter is required.
      Returns:
      this
    • eventBuses

      @Stability(Stable) public CfnEndpoint.Builder eventBuses(List<? extends Object> eventBuses)
      The event buses being used by the endpoint.

      Exactly : 2

      Parameters:
      eventBuses - The event buses being used by the endpoint. This parameter is required.
      Returns:
      this
    • routingConfig

      @Stability(Stable) public CfnEndpoint.Builder routingConfig(IResolvable routingConfig)
      The routing configuration of the endpoint.

      Parameters:
      routingConfig - The routing configuration of the endpoint. This parameter is required.
      Returns:
      this
    • routingConfig

      @Stability(Stable) public CfnEndpoint.Builder routingConfig(CfnEndpoint.RoutingConfigProperty routingConfig)
      The routing configuration of the endpoint.

      Parameters:
      routingConfig - The routing configuration of the endpoint. This parameter is required.
      Returns:
      this
    • description

      @Stability(Stable) public CfnEndpoint.Builder description(String description)
      A description for the endpoint.

      Parameters:
      description - A description for the endpoint. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnEndpoint.Builder name(String name)
      The name of the endpoint.

      Parameters:
      name - The name of the endpoint. This parameter is required.
      Returns:
      this
    • replicationConfig

      @Stability(Stable) public CfnEndpoint.Builder replicationConfig(IResolvable replicationConfig)
      Whether event replication was enabled or disabled for this endpoint.

      The default state is ENABLED which means you must supply a RoleArn . If you don't have a RoleArn or you don't want event replication enabled, set the state to DISABLED .

      Parameters:
      replicationConfig - Whether event replication was enabled or disabled for this endpoint. This parameter is required.
      Returns:
      this
    • replicationConfig

      @Stability(Stable) public CfnEndpoint.Builder replicationConfig(CfnEndpoint.ReplicationConfigProperty replicationConfig)
      Whether event replication was enabled or disabled for this endpoint.

      The default state is ENABLED which means you must supply a RoleArn . If you don't have a RoleArn or you don't want event replication enabled, set the state to DISABLED .

      Parameters:
      replicationConfig - Whether event replication was enabled or disabled for this endpoint. This parameter is required.
      Returns:
      this
    • roleArn

      @Stability(Stable) public CfnEndpoint.Builder roleArn(String roleArn)
      The ARN of the role used by event replication for the endpoint.

      Parameters:
      roleArn - The ARN of the role used by event replication for the endpoint. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnEndpoint build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnEndpoint>
      Returns:
      a newly built instance of CfnEndpoint.