Class AwsSegmentCopy.Builder

  • Enclosing class:
    AwsSegmentCopy

    public static class AwsSegmentCopy.Builder
    extends java.lang.Object
    Collect options for the AwsSegmentCopy command.
    • Method Detail

      • withSource

        public AwsSegmentCopy.Builder withSource​(java.lang.String source)
        The source path/URI to an existing segment store. This parameter is required.
        Parameters:
        source - the source path/URI to an existing segment store.
        Returns:
        this builder.
      • withDestination

        public AwsSegmentCopy.Builder withDestination​(java.lang.String destination)
        The destination path/URI to an existing segment store. This parameter is required.
        Parameters:
        destination - the destination path/URI to an existing segment store.
        Returns:
        this builder.
      • withOutWriter

        public AwsSegmentCopy.Builder withOutWriter​(java.io.PrintWriter outWriter)
        The text output stream writer used to print normal output.
        Parameters:
        outWriter - the output writer.
        Returns:
        this builder.
      • withErrWriter

        public AwsSegmentCopy.Builder withErrWriter​(java.io.PrintWriter errWriter)
        The text error stream writer used to print erroneous output.
        Parameters:
        errWriter - the error writer.
        Returns:
        this builder.
      • withRevisionsCount

        public AwsSegmentCopy.Builder withRevisionsCount​(java.lang.Integer revisionsCount)
        The last revisionsCount revisions to be copied. This parameter is not required and defaults to 1.
        Parameters:
        revisionsCount - number of revisions to copied.
        Returns:
        this builder.
      • build

        public AwsSegmentCopy build()
        Create an executable version of the Check command.
        Returns:
        an instance of Runnable.