public static class

MirrorSyncCommandParameters.Builder

extends Object
java.lang.Object
   ↳ com.atlassian.bitbucket.scm.mirror.MirrorSyncCommandParameters.Builder

Summary

Public Constructors
Builder(String remoteUrl)
Public Methods
@Nonnull MirrorSyncCommandParameters build()
@Nonnull MirrorSyncCommandParameters.Builder includePrivateRefs(boolean value)
@Nonnull MirrorSyncCommandParameters.Builder password(String value)
@Nonnull MirrorSyncCommandParameters.Builder privateKey(File value)
@Nonnull MirrorSyncCommandParameters.Builder privateKey(Path value)
@Nonnull MirrorSyncCommandParameters.Builder username(String value)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder (String remoteUrl)

Parameters
remoteUrl the URL to fetch from

Public Methods

@Nonnull public MirrorSyncCommandParameters build ()

@Nonnull public MirrorSyncCommandParameters.Builder includePrivateRefs (boolean value)

Parameters
value whether to include private refs (outside refs/heads and refs/tags) in the fetch. The default value is true so all refs will be fetched.
Returns
  • the builder

@Nonnull public MirrorSyncCommandParameters.Builder password (String value)

Parameters
value the password to use
Returns
  • the builder

@Nonnull public MirrorSyncCommandParameters.Builder privateKey (File value)

Parameters
value the SSH private key to use for authentication
Returns
  • the builder

@Nonnull public MirrorSyncCommandParameters.Builder privateKey (Path value)

Parameters
value the SSH private key to use for authentication
Returns
  • the builder

@Nonnull public MirrorSyncCommandParameters.Builder username (String value)

Parameters
value the username to use
Returns
  • the builder