Class UploadArtifactOptions.Builder

  • Enclosing class:
    UploadArtifactOptions

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

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(java.lang.String objectId,
                       java.lang.String artifactId)
        Instantiates a new builder with required properties.
        Parameters:
        objectId - the objectId
        artifactId - the artifactId
    • Method Detail

      • build

        public UploadArtifactOptions build()
        Builds a UploadArtifactOptions.
        Returns:
        the new UploadArtifactOptions instance
      • objectId

        public UploadArtifactOptions.Builder objectId​(java.lang.String objectId)
        Set the objectId.
        Parameters:
        objectId - the objectId
        Returns:
        the UploadArtifactOptions builder
      • artifactId

        public UploadArtifactOptions.Builder artifactId​(java.lang.String artifactId)
        Set the artifactId.
        Parameters:
        artifactId - the artifactId
        Returns:
        the UploadArtifactOptions builder
      • artifact

        public UploadArtifactOptions.Builder artifact​(java.io.InputStream artifact)
        Set the artifact.
        Parameters:
        artifact - the artifact
        Returns:
        the UploadArtifactOptions builder
      • contentType

        public UploadArtifactOptions.Builder contentType​(java.lang.String contentType)
        Set the contentType.
        Parameters:
        contentType - the contentType
        Returns:
        the UploadArtifactOptions builder
      • account

        public UploadArtifactOptions.Builder account​(java.lang.String account)
        Set the account.
        Parameters:
        account - the account
        Returns:
        the UploadArtifactOptions builder
      • artifact

        public UploadArtifactOptions.Builder artifact​(java.io.File artifact)
                                               throws java.io.FileNotFoundException
        Set the artifact.
        Parameters:
        artifact - the artifact
        Returns:
        the UploadArtifactOptions builder
        Throws:
        java.io.FileNotFoundException - if the file could not be found