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 Summary
ConstructorsConstructorDescriptionGithubRepositoryDto(@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 aGithubRepositoryDtorecord class.GithubRepositoryDto(CreateNewProjectGeneralDto generalDto, CreateNewProjectGithubDto githubDto) -
Method Summary
Modifier and TypeMethodDescriptionautoInit()Returns the value of theautoInitrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegitIgnoreTemplaterecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelicenseTemplaterecord component.@NotNull Stringname()Returns the value of thenamerecord component.owner()Returns the value of theownerrecord component.private_()Returns the value of theprivate_record component.final StringtoString()Returns a string representation of this record class.org.kohsuke.github.GHRepository.VisibilityReturns the value of thevisibilityrecord component.
-
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 aGithubRepositoryDtorecord class.- Parameters:
name- the value for thenamerecord componentautoInit- the value for theautoInitrecord componentlicenseTemplate- the value for thelicenseTemplaterecord componentgitIgnoreTemplate- the value for thegitIgnoreTemplaterecord componentowner- the value for theownerrecord componentdescription- the value for thedescriptionrecord componentvisibility- the value for thevisibilityrecord componentprivate_- the value for theprivate_record component
-
GithubRepositoryDto
public GithubRepositoryDto(CreateNewProjectGeneralDto generalDto, CreateNewProjectGithubDto githubDto)
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
autoInit
Returns the value of theautoInitrecord component.- Returns:
- the value of the
autoInitrecord component
-
licenseTemplate
Returns the value of thelicenseTemplaterecord component.- Returns:
- the value of the
licenseTemplaterecord component
-
gitIgnoreTemplate
Returns the value of thegitIgnoreTemplaterecord component.- Returns:
- the value of the
gitIgnoreTemplaterecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
visibility
public org.kohsuke.github.GHRepository.Visibility visibility()Returns the value of thevisibilityrecord component.- Returns:
- the value of the
visibilityrecord component
-
private_
Returns the value of theprivate_record component.- Returns:
- the value of the
private_record component
-