Record Class GithubRepositoryDto

java.lang.Object
java.lang.Record
com.winchesters.devopsify.dto.request.GithubRepositoryDto

public record GithubRepositoryDto(@NotNull String name, Boolean autoInit, String licenseTemplate, String gitIgnoreTemplate, String owner, String description, org.kohsuke.github.GHRepository.Visibility visibility, Boolean private_) extends Record
name autoInit: Whether the repository is initialized with a minimal README licenseTemplate: The license keyword of the open source license for this repository. gitIgnoreTemplate: The desired language or platform to apply to the .gitignore. owner: owner of the account description: description visibility: PUBLIC / PRIVATE private_: boolean
  • Constructor Details

    • GithubRepositoryDto

      public GithubRepositoryDto(@NotNull @NotNull String name, Boolean autoInit, String licenseTemplate, String gitIgnoreTemplate, String owner, String description, org.kohsuke.github.GHRepository.Visibility visibility, Boolean private_)
      Creates an instance of a GithubRepositoryDto record class.
      Parameters:
      name - the value for the name record component
      autoInit - the value for the autoInit record component
      licenseTemplate - the value for the licenseTemplate record component
      gitIgnoreTemplate - the value for the gitIgnoreTemplate record component
      owner - the value for the owner record component
      description - the value for the description record component
      visibility - the value for the visibility record component
      private_ - the value for the private_ record component
    • GithubRepositoryDto

      public GithubRepositoryDto(CreateNewProjectGeneralDto generalDto, CreateNewProjectGithubDto githubDto)
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      @NotNull public @NotNull String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • autoInit

      public Boolean autoInit()
      Returns the value of the autoInit record component.
      Returns:
      the value of the autoInit record component
    • licenseTemplate

      public String licenseTemplate()
      Returns the value of the licenseTemplate record component.
      Returns:
      the value of the licenseTemplate record component
    • gitIgnoreTemplate

      public String gitIgnoreTemplate()
      Returns the value of the gitIgnoreTemplate record component.
      Returns:
      the value of the gitIgnoreTemplate record component
    • owner

      public String owner()
      Returns the value of the owner record component.
      Returns:
      the value of the owner record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • visibility

      public org.kohsuke.github.GHRepository.Visibility visibility()
      Returns the value of the visibility record component.
      Returns:
      the value of the visibility record component
    • private_

      public Boolean private_()
      Returns the value of the private_ record component.
      Returns:
      the value of the private_ record component