Class CreatePushMirrorOption

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

@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 CreatePushMirrorOption extends Object
CreatePushMirrorOption
  • Field Details

  • Constructor Details

    • CreatePushMirrorOption

      public CreatePushMirrorOption()
  • Method Details

    • branchFilter

      public CreatePushMirrorOption branchFilter(@Nullable String branchFilter)
    • getBranchFilter

      @Nullable public String getBranchFilter()
      Get branchFilter
      Returns:
      branchFilter
    • setBranchFilter

      public void setBranchFilter(@Nullable String branchFilter)
    • interval

      public CreatePushMirrorOption interval(@Nullable String interval)
    • getInterval

      @Nullable public String getInterval()
      Get interval
      Returns:
      interval
    • setInterval

      public void setInterval(@Nullable String interval)
    • remoteAddress

      public CreatePushMirrorOption remoteAddress(@Nullable String remoteAddress)
    • getRemoteAddress

      @Nullable public String getRemoteAddress()
      Get remoteAddress
      Returns:
      remoteAddress
    • setRemoteAddress

      public void setRemoteAddress(@Nullable String remoteAddress)
    • remotePassword

      public CreatePushMirrorOption remotePassword(@Nullable String remotePassword)
    • getRemotePassword

      @Nullable public String getRemotePassword()
      Get remotePassword
      Returns:
      remotePassword
    • setRemotePassword

      public void setRemotePassword(@Nullable String remotePassword)
    • remoteUsername

      public CreatePushMirrorOption remoteUsername(@Nullable String remoteUsername)
    • getRemoteUsername

      @Nullable public String getRemoteUsername()
      Get remoteUsername
      Returns:
      remoteUsername
    • setRemoteUsername

      public void setRemoteUsername(@Nullable String remoteUsername)
    • syncOnCommit

      public CreatePushMirrorOption syncOnCommit(@Nullable Boolean syncOnCommit)
    • getSyncOnCommit

      @Nullable public Boolean getSyncOnCommit()
      Get syncOnCommit
      Returns:
      syncOnCommit
    • setSyncOnCommit

      public void setSyncOnCommit(@Nullable Boolean syncOnCommit)
    • useSsh

      public CreatePushMirrorOption useSsh(@Nullable Boolean useSsh)
    • getUseSsh

      @Nullable public Boolean getUseSsh()
      Get useSsh
      Returns:
      useSsh
    • setUseSsh

      public void setUseSsh(@Nullable Boolean useSsh)
    • 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 CreatePushMirrorOption
    • fromJson

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

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