Class MigrateRepoOptions

java.lang.Object
build.cursed.genapi.forgejo.model.MigrateRepoOptions

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]", comments="Generator version: 7.21.0") public class MigrateRepoOptions extends Object
MigrateRepoOptions options for migrating repository's this is used to interact with api v1
  • Field Details

  • Constructor Details

    • MigrateRepoOptions

      public MigrateRepoOptions()
  • Method Details

    • authPassword

      public MigrateRepoOptions authPassword(@Nullable String authPassword)
    • getAuthPassword

      @Nullable public String getAuthPassword()
      Get authPassword
      Returns:
      authPassword
    • setAuthPassword

      public void setAuthPassword(@Nullable String authPassword)
    • authToken

      public MigrateRepoOptions authToken(@Nullable String authToken)
    • getAuthToken

      @Nullable public String getAuthToken()
      Get authToken
      Returns:
      authToken
    • setAuthToken

      public void setAuthToken(@Nullable String authToken)
    • authUsername

      public MigrateRepoOptions authUsername(@Nullable String authUsername)
    • getAuthUsername

      @Nullable public String getAuthUsername()
      Get authUsername
      Returns:
      authUsername
    • setAuthUsername

      public void setAuthUsername(@Nullable String authUsername)
    • cloneAddr

      public MigrateRepoOptions cloneAddr(@Nonnull String cloneAddr)
    • getCloneAddr

      @Nonnull public String getCloneAddr()
      Get cloneAddr
      Returns:
      cloneAddr
    • setCloneAddr

      public void setCloneAddr(@Nonnull String cloneAddr)
    • description

      public MigrateRepoOptions description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Get description
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • issues

      public MigrateRepoOptions issues(@Nullable Boolean issues)
    • getIssues

      @Nullable public Boolean getIssues()
      Get issues
      Returns:
      issues
    • setIssues

      public void setIssues(@Nullable Boolean issues)
    • labels

      public MigrateRepoOptions labels(@Nullable Boolean labels)
    • getLabels

      @Nullable public Boolean getLabels()
      Get labels
      Returns:
      labels
    • setLabels

      public void setLabels(@Nullable Boolean labels)
    • lfs

      public MigrateRepoOptions lfs(@Nullable Boolean lfs)
    • getLfs

      @Nullable public Boolean getLfs()
      Get lfs
      Returns:
      lfs
    • setLfs

      public void setLfs(@Nullable Boolean lfs)
    • lfsEndpoint

      public MigrateRepoOptions lfsEndpoint(@Nullable String lfsEndpoint)
    • getLfsEndpoint

      @Nullable public String getLfsEndpoint()
      Get lfsEndpoint
      Returns:
      lfsEndpoint
    • setLfsEndpoint

      public void setLfsEndpoint(@Nullable String lfsEndpoint)
    • milestones

      public MigrateRepoOptions milestones(@Nullable Boolean milestones)
    • getMilestones

      @Nullable public Boolean getMilestones()
      Get milestones
      Returns:
      milestones
    • setMilestones

      public void setMilestones(@Nullable Boolean milestones)
    • mirror

      public MigrateRepoOptions mirror(@Nullable Boolean mirror)
    • getMirror

      @Nullable public Boolean getMirror()
      Get mirror
      Returns:
      mirror
    • setMirror

      public void setMirror(@Nullable Boolean mirror)
    • mirrorInterval

      public MigrateRepoOptions mirrorInterval(@Nullable String mirrorInterval)
    • getMirrorInterval

      @Nullable public String getMirrorInterval()
      Get mirrorInterval
      Returns:
      mirrorInterval
    • setMirrorInterval

      public void setMirrorInterval(@Nullable String mirrorInterval)
    • _private

      public MigrateRepoOptions _private(@Nullable Boolean _private)
    • getPrivate

      @Nullable public Boolean getPrivate()
      Get _private
      Returns:
      _private
    • setPrivate

      public void setPrivate(@Nullable Boolean _private)
    • pullRequests

      public MigrateRepoOptions pullRequests(@Nullable Boolean pullRequests)
    • getPullRequests

      @Nullable public Boolean getPullRequests()
      Get pullRequests
      Returns:
      pullRequests
    • setPullRequests

      public void setPullRequests(@Nullable Boolean pullRequests)
    • releases

      public MigrateRepoOptions releases(@Nullable Boolean releases)
    • getReleases

      @Nullable public Boolean getReleases()
      Get releases
      Returns:
      releases
    • setReleases

      public void setReleases(@Nullable Boolean releases)
    • repoName

      public MigrateRepoOptions repoName(@Nonnull String repoName)
    • getRepoName

      @Nonnull public String getRepoName()
      Get repoName
      Returns:
      repoName
    • setRepoName

      public void setRepoName(@Nonnull String repoName)
    • repoOwner

      public MigrateRepoOptions repoOwner(@Nullable String repoOwner)
    • getRepoOwner

      @Nullable public String getRepoOwner()
      Name of User or Organisation who will own Repo after migration
      Returns:
      repoOwner
    • setRepoOwner

      public void setRepoOwner(@Nullable String repoOwner)
    • service

      public MigrateRepoOptions service(@Nullable MigrateRepoOptions.ServiceEnum service)
    • getService

      @Nullable public MigrateRepoOptions.ServiceEnum getService()
      Get service
      Returns:
      service
    • setService

      public void setService(@Nullable MigrateRepoOptions.ServiceEnum service)
    • uid

      public MigrateRepoOptions uid(@Nullable Long uid)
    • getUid

      @Nullable public Long getUid()
      deprecated (only for backwards compatibility)
      Returns:
      uid
    • setUid

      public void setUid(@Nullable Long uid)
    • wiki

      public MigrateRepoOptions wiki(@Nullable Boolean wiki)
    • getWiki

      @Nullable public Boolean getWiki()
      Get wiki
      Returns:
      wiki
    • setWiki

      public void setWiki(@Nullable Boolean wiki)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to MigrateRepoOptions
    • fromJson

      public static MigrateRepoOptions fromJson(String jsonString) throws IOException
      Create an instance of MigrateRepoOptions given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of MigrateRepoOptions
      Throws:
      IOException - if the JSON string is invalid with respect to MigrateRepoOptions
    • toJson

      public String toJson()
      Convert an instance of MigrateRepoOptions to an JSON string
      Returns:
      JSON string