Class CfnApprovedOrigin.Builder

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

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

    • create

      @Stability(Stable) public static CfnApprovedOrigin.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 CfnApprovedOrigin.Builder.
    • instanceId

      @Stability(Stable) public CfnApprovedOrigin.Builder instanceId(String instanceId)
      The Amazon Resource Name (ARN) of the instance.

      Minimum : 1

      Maximum : 100

      Parameters:
      instanceId - The Amazon Resource Name (ARN) of the instance. This parameter is required.
      Returns:
      this
    • origin

      @Stability(Stable) public CfnApprovedOrigin.Builder origin(String origin)
      Domain name to be added to the allow-list of the instance.

      Maximum : 267

      Parameters:
      origin - Domain name to be added to the allow-list of the instance. This parameter is required.
      Returns:
      this
    • build

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