Class TaskOptionsArgs.Builder

  • Enclosing class:
    TaskOptionsArgs

    public static final class TaskOptionsArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • atime

        public TaskOptionsArgs.Builder atime​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> atime)
        Parameters:
        atime - A file metadata that shows the last time a file was accessed (that is when the file was read or written to). If set to `BEST_EFFORT`, the DataSync Task attempts to preserve the original (that is, the version before sync `PREPARING` phase) `atime` attribute on all source files. Valid values: `BEST_EFFORT`, `NONE`. Default: `BEST_EFFORT`.
        Returns:
        builder
      • atime

        public TaskOptionsArgs.Builder atime​(java.lang.String atime)
        Parameters:
        atime - A file metadata that shows the last time a file was accessed (that is when the file was read or written to). If set to `BEST_EFFORT`, the DataSync Task attempts to preserve the original (that is, the version before sync `PREPARING` phase) `atime` attribute on all source files. Valid values: `BEST_EFFORT`, `NONE`. Default: `BEST_EFFORT`.
        Returns:
        builder
      • bytesPerSecond

        public TaskOptionsArgs.Builder bytesPerSecond​(@Nullable
                                                      com.pulumi.core.Output<java.lang.Integer> bytesPerSecond)
        Parameters:
        bytesPerSecond - Limits the bandwidth utilized. For example, to set a maximum of 1 MB, set this value to `1048576`. Value values: `-1` or greater. Default: `-1` (unlimited).
        Returns:
        builder
      • bytesPerSecond

        public TaskOptionsArgs.Builder bytesPerSecond​(java.lang.Integer bytesPerSecond)
        Parameters:
        bytesPerSecond - Limits the bandwidth utilized. For example, to set a maximum of 1 MB, set this value to `1048576`. Value values: `-1` or greater. Default: `-1` (unlimited).
        Returns:
        builder
      • gid

        public TaskOptionsArgs.Builder gid​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> gid)
        Parameters:
        gid - Group identifier of the file's owners. Valid values: `BOTH`, `INT_VALUE`, `NAME`, `NONE`. Default: `INT_VALUE` (preserve integer value of the ID).
        Returns:
        builder
      • gid

        public TaskOptionsArgs.Builder gid​(java.lang.String gid)
        Parameters:
        gid - Group identifier of the file's owners. Valid values: `BOTH`, `INT_VALUE`, `NAME`, `NONE`. Default: `INT_VALUE` (preserve integer value of the ID).
        Returns:
        builder
      • logLevel

        public TaskOptionsArgs.Builder logLevel​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> logLevel)
        Parameters:
        logLevel - Determines the type of logs that DataSync publishes to a log stream in the Amazon CloudWatch log group that you provide. Valid values: `OFF`, `BASIC`, `TRANSFER`. Default: `OFF`.
        Returns:
        builder
      • logLevel

        public TaskOptionsArgs.Builder logLevel​(java.lang.String logLevel)
        Parameters:
        logLevel - Determines the type of logs that DataSync publishes to a log stream in the Amazon CloudWatch log group that you provide. Valid values: `OFF`, `BASIC`, `TRANSFER`. Default: `OFF`.
        Returns:
        builder
      • mtime

        public TaskOptionsArgs.Builder mtime​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> mtime)
        Parameters:
        mtime - A file metadata that indicates the last time a file was modified (written to) before the sync `PREPARING` phase. Value values: `NONE`, `PRESERVE`. Default: `PRESERVE`.
        Returns:
        builder
      • mtime

        public TaskOptionsArgs.Builder mtime​(java.lang.String mtime)
        Parameters:
        mtime - A file metadata that indicates the last time a file was modified (written to) before the sync `PREPARING` phase. Value values: `NONE`, `PRESERVE`. Default: `PRESERVE`.
        Returns:
        builder
      • objectTags

        public TaskOptionsArgs.Builder objectTags​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> objectTags)
        Parameters:
        objectTags - Specifies whether object tags are maintained when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the NONE value. Valid values: `PRESERVE`, `NONE`. Default value: `PRESERVE`.
        Returns:
        builder
      • objectTags

        public TaskOptionsArgs.Builder objectTags​(java.lang.String objectTags)
        Parameters:
        objectTags - Specifies whether object tags are maintained when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the NONE value. Valid values: `PRESERVE`, `NONE`. Default value: `PRESERVE`.
        Returns:
        builder
      • overwriteMode

        public TaskOptionsArgs.Builder overwriteMode​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> overwriteMode)
        Parameters:
        overwriteMode - Determines whether files at the destination should be overwritten or preserved when copying files. Valid values: `ALWAYS`, `NEVER`. Default: `ALWAYS`.
        Returns:
        builder
      • overwriteMode

        public TaskOptionsArgs.Builder overwriteMode​(java.lang.String overwriteMode)
        Parameters:
        overwriteMode - Determines whether files at the destination should be overwritten or preserved when copying files. Valid values: `ALWAYS`, `NEVER`. Default: `ALWAYS`.
        Returns:
        builder
      • posixPermissions

        public TaskOptionsArgs.Builder posixPermissions​(@Nullable
                                                        com.pulumi.core.Output<java.lang.String> posixPermissions)
        Parameters:
        posixPermissions - Determines which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file. Valid values: `NONE`, `PRESERVE`. Default: `PRESERVE`.
        Returns:
        builder
      • posixPermissions

        public TaskOptionsArgs.Builder posixPermissions​(java.lang.String posixPermissions)
        Parameters:
        posixPermissions - Determines which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file. Valid values: `NONE`, `PRESERVE`. Default: `PRESERVE`.
        Returns:
        builder
      • preserveDeletedFiles

        public TaskOptionsArgs.Builder preserveDeletedFiles​(@Nullable
                                                            com.pulumi.core.Output<java.lang.String> preserveDeletedFiles)
        Parameters:
        preserveDeletedFiles - Whether files deleted in the source should be removed or preserved in the destination file system. Valid values: `PRESERVE`, `REMOVE`. Default: `PRESERVE`.
        Returns:
        builder
      • preserveDeletedFiles

        public TaskOptionsArgs.Builder preserveDeletedFiles​(java.lang.String preserveDeletedFiles)
        Parameters:
        preserveDeletedFiles - Whether files deleted in the source should be removed or preserved in the destination file system. Valid values: `PRESERVE`, `REMOVE`. Default: `PRESERVE`.
        Returns:
        builder
      • preserveDevices

        public TaskOptionsArgs.Builder preserveDevices​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> preserveDevices)
        Parameters:
        preserveDevices - Whether the DataSync Task should preserve the metadata of block and character devices in the source files system, and recreate the files with that device name and metadata on the destination. The DataSync Task can’t sync the actual contents of such devices, because many of the devices are non-terminal and don’t return an end of file (EOF) marker. Valid values: `NONE`, `PRESERVE`. Default: `NONE` (ignore special devices).
        Returns:
        builder
      • preserveDevices

        public TaskOptionsArgs.Builder preserveDevices​(java.lang.String preserveDevices)
        Parameters:
        preserveDevices - Whether the DataSync Task should preserve the metadata of block and character devices in the source files system, and recreate the files with that device name and metadata on the destination. The DataSync Task can’t sync the actual contents of such devices, because many of the devices are non-terminal and don’t return an end of file (EOF) marker. Valid values: `NONE`, `PRESERVE`. Default: `NONE` (ignore special devices).
        Returns:
        builder
      • securityDescriptorCopyFlags

        public TaskOptionsArgs.Builder securityDescriptorCopyFlags​(@Nullable
                                                                   com.pulumi.core.Output<java.lang.String> securityDescriptorCopyFlags)
        Parameters:
        securityDescriptorCopyFlags - Determines which components of the SMB security descriptor are copied from source to destination objects. This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations, or between two Amazon FSx for Windows File Server locations. Valid values: `NONE`, `OWNER_DACL`, `OWNER_DACL_SACL`. Default: `OWNER_DACL`.
        Returns:
        builder
      • securityDescriptorCopyFlags

        public TaskOptionsArgs.Builder securityDescriptorCopyFlags​(java.lang.String securityDescriptorCopyFlags)
        Parameters:
        securityDescriptorCopyFlags - Determines which components of the SMB security descriptor are copied from source to destination objects. This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations, or between two Amazon FSx for Windows File Server locations. Valid values: `NONE`, `OWNER_DACL`, `OWNER_DACL_SACL`. Default: `OWNER_DACL`.
        Returns:
        builder
      • taskQueueing

        public TaskOptionsArgs.Builder taskQueueing​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> taskQueueing)
        Parameters:
        taskQueueing - Determines whether tasks should be queued before executing the tasks. Valid values: `ENABLED`, `DISABLED`. Default `ENABLED`.
        Returns:
        builder
      • taskQueueing

        public TaskOptionsArgs.Builder taskQueueing​(java.lang.String taskQueueing)
        Parameters:
        taskQueueing - Determines whether tasks should be queued before executing the tasks. Valid values: `ENABLED`, `DISABLED`. Default `ENABLED`.
        Returns:
        builder
      • transferMode

        public TaskOptionsArgs.Builder transferMode​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> transferMode)
        Parameters:
        transferMode - Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location, or whether DataSync transfers all the content from the source, without comparing to the destination location. Valid values: `CHANGED`, `ALL`. Default: `CHANGED`
        Returns:
        builder
      • transferMode

        public TaskOptionsArgs.Builder transferMode​(java.lang.String transferMode)
        Parameters:
        transferMode - Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location, or whether DataSync transfers all the content from the source, without comparing to the destination location. Valid values: `CHANGED`, `ALL`. Default: `CHANGED`
        Returns:
        builder
      • uid

        public TaskOptionsArgs.Builder uid​(@Nullable
                                           com.pulumi.core.Output<java.lang.String> uid)
        Parameters:
        uid - User identifier of the file's owners. Valid values: `BOTH`, `INT_VALUE`, `NAME`, `NONE`. Default: `INT_VALUE` (preserve integer value of the ID).
        Returns:
        builder
      • uid

        public TaskOptionsArgs.Builder uid​(java.lang.String uid)
        Parameters:
        uid - User identifier of the file's owners. Valid values: `BOTH`, `INT_VALUE`, `NAME`, `NONE`. Default: `INT_VALUE` (preserve integer value of the ID).
        Returns:
        builder
      • verifyMode

        public TaskOptionsArgs.Builder verifyMode​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> verifyMode)
        Parameters:
        verifyMode - Whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred. Valid values: `NONE`, `POINT_IN_TIME_CONSISTENT`, `ONLY_FILES_TRANSFERRED`. Default: `POINT_IN_TIME_CONSISTENT`.
        Returns:
        builder
      • verifyMode

        public TaskOptionsArgs.Builder verifyMode​(java.lang.String verifyMode)
        Parameters:
        verifyMode - Whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred. Valid values: `NONE`, `POINT_IN_TIME_CONSISTENT`, `ONLY_FILES_TRANSFERRED`. Default: `POINT_IN_TIME_CONSISTENT`.
        Returns:
        builder