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 aGithubRepositoryDto
record class.GithubRepositoryDto
(CreateNewProjectGeneralDto generalDto, CreateNewProjectGithubDto githubDto) -
Method Summary
Modifier and TypeMethodDescriptionautoInit()
Returns the value of theautoInit
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegitIgnoreTemplate
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelicenseTemplate
record component.@NotNull String
name()
Returns the value of thename
record component.owner()
Returns the value of theowner
record component.private_()
Returns the value of theprivate_
record component.final String
toString()
Returns a string representation of this record class.org.kohsuke.github.GHRepository.Visibility
Returns the value of thevisibility
record 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 aGithubRepositoryDto
record class.- Parameters:
name
- the value for thename
record componentautoInit
- the value for theautoInit
record componentlicenseTemplate
- the value for thelicenseTemplate
record componentgitIgnoreTemplate
- the value for thegitIgnoreTemplate
record componentowner
- the value for theowner
record componentdescription
- the value for thedescription
record componentvisibility
- the value for thevisibility
record 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 thename
record component.- Returns:
- the value of the
name
record component
-
autoInit
Returns the value of theautoInit
record component.- Returns:
- the value of the
autoInit
record component
-
licenseTemplate
Returns the value of thelicenseTemplate
record component.- Returns:
- the value of the
licenseTemplate
record component
-
gitIgnoreTemplate
Returns the value of thegitIgnoreTemplate
record component.- Returns:
- the value of the
gitIgnoreTemplate
record component
-
owner
Returns the value of theowner
record component.- Returns:
- the value of the
owner
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
visibility
public org.kohsuke.github.GHRepository.Visibility visibility()Returns the value of thevisibility
record component.- Returns:
- the value of the
visibility
record component
-
private_
Returns the value of theprivate_
record component.- Returns:
- the value of the
private_
record component
-