Class CfnSyncJobProps.Builder
java.lang.Object
software.amazon.awscdk.services.iottwinmaker.CfnSyncJobProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSyncJobProps>
- Enclosing interface:
CfnSyncJobProps
@Stability(Stable)
public static final class CfnSyncJobProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSyncJobProps>
A builder for
CfnSyncJobProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnSyncJobProps.getSyncRole()
syncSource
(String syncSource) Sets the value ofCfnSyncJobProps.getSyncSource()
Sets the value ofCfnSyncJobProps.getTags()
workspaceId
(String workspaceId) Sets the value ofCfnSyncJobProps.getWorkspaceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
syncRole
Sets the value ofCfnSyncJobProps.getSyncRole()
- Parameters:
syncRole
- The SyncJob IAM role. This parameter is required. This IAM role is used by the sync job to read from the syncSource, and create, update or delete the corresponding resources.- Returns:
this
-
syncSource
Sets the value ofCfnSyncJobProps.getSyncSource()
- Parameters:
syncSource
- The sync source. This parameter is required.Currently the only supported syncSoucre is
SITEWISE
.- Returns:
this
-
workspaceId
Sets the value ofCfnSyncJobProps.getWorkspaceId()
- Parameters:
workspaceId
- The ID of the workspace that contains the sync job. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnSyncJobProps.getTags()
- Parameters:
tags
- Metadata you can use to manage the SyncJob.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSyncJobProps>
- Returns:
- a new instance of
CfnSyncJobProps
- Throws:
NullPointerException
- if any required attribute was not provided
-