Class CfnConnector.WorkerConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kafkaconnect.CfnConnector.WorkerConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnector.WorkerConfigurationProperty>
- Enclosing interface:
CfnConnector.WorkerConfigurationProperty
@Stability(Stable)
public static final class CfnConnector.WorkerConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnector.WorkerConfigurationProperty>
A builder for
CfnConnector.WorkerConfigurationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnConnector.WorkerConfigurationProperty.getRevision()
workerConfigurationArn
(String workerConfigurationArn) Sets the value ofCfnConnector.WorkerConfigurationProperty.getWorkerConfigurationArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
revision
@Stability(Stable) public CfnConnector.WorkerConfigurationProperty.Builder revision(Number revision) Sets the value ofCfnConnector.WorkerConfigurationProperty.getRevision()
- Parameters:
revision
- The revision of the worker configuration. This parameter is required.- Returns:
this
-
workerConfigurationArn
@Stability(Stable) public CfnConnector.WorkerConfigurationProperty.Builder workerConfigurationArn(String workerConfigurationArn) Sets the value ofCfnConnector.WorkerConfigurationProperty.getWorkerConfigurationArn()
- Parameters:
workerConfigurationArn
- The Amazon Resource Name (ARN) of the worker configuration. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConnector.WorkerConfigurationProperty>
- Returns:
- a new instance of
CfnConnector.WorkerConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-