Class ApprovedOriginReference.Builder
java.lang.Object
software.amazon.awscdk.services.connect.ApprovedOriginReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ApprovedOriginReference>
- Enclosing interface:
ApprovedOriginReference
@Stability(Stable)
public static final class ApprovedOriginReference.Builder
extends Object
implements software.amazon.jsii.Builder<ApprovedOriginReference>
A builder for
ApprovedOriginReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.instanceId
(String instanceId) Sets the value ofApprovedOriginReference.getInstanceId()
Sets the value ofApprovedOriginReference.getOrigin()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
instanceId
Sets the value ofApprovedOriginReference.getInstanceId()
- Parameters:
instanceId
- The InstanceId of the ApprovedOrigin resource. This parameter is required.- Returns:
this
-
origin
Sets the value ofApprovedOriginReference.getOrigin()
- Parameters:
origin
- The Origin of the ApprovedOrigin resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ApprovedOriginReference>
- Returns:
- a new instance of
ApprovedOriginReference
- Throws:
NullPointerException
- if any required attribute was not provided
-