All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.katalon.testops.api.model.GitRepositoryResource Maven / Gradle / Ivy
/*
* Katalon TestOps API reference
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.katalon.testops.api.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* GitRepositoryResource
*/
@JsonPropertyOrder({
GitRepositoryResource.JSON_PROPERTY_ID,
GitRepositoryResource.JSON_PROPERTY_TEST_PROJECT_ID,
GitRepositoryResource.JSON_PROPERTY_NAME,
GitRepositoryResource.JSON_PROPERTY_REPOSITORY,
GitRepositoryResource.JSON_PROPERTY_BRANCH,
GitRepositoryResource.JSON_PROPERTY_USERNAME,
GitRepositoryResource.JSON_PROPERTY_PASSWORD,
GitRepositoryResource.JSON_PROPERTY_PROJECT_ID,
GitRepositoryResource.JSON_PROPERTY_TEAM_ID,
GitRepositoryResource.JSON_PROPERTY_CREATED_AT,
GitRepositoryResource.JSON_PROPERTY_UPDATED_AT,
GitRepositoryResource.JSON_PROPERTY_DESCRIPTION,
GitRepositoryResource.JSON_PROPERTY_VCS_TYPE
})
@JsonTypeName("GitRepositoryResource")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class GitRepositoryResource implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ID = "id";
private Long id;
public static final String JSON_PROPERTY_TEST_PROJECT_ID = "testProjectId";
private Long testProjectId;
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_REPOSITORY = "repository";
private String repository;
public static final String JSON_PROPERTY_BRANCH = "branch";
private String branch;
public static final String JSON_PROPERTY_USERNAME = "username";
private String username;
public static final String JSON_PROPERTY_PASSWORD = "password";
private String password;
public static final String JSON_PROPERTY_PROJECT_ID = "projectId";
private Long projectId;
public static final String JSON_PROPERTY_TEAM_ID = "teamId";
private Long teamId;
public static final String JSON_PROPERTY_CREATED_AT = "createdAt";
private OffsetDateTime createdAt;
public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt";
private OffsetDateTime updatedAt;
public static final String JSON_PROPERTY_DESCRIPTION = "description";
private String description;
/**
* Gets or Sets vcsType
*/
public enum VcsTypeEnum {
GITHUB("GITHUB"),
GITLAB("GITLAB"),
BITBUCKET("BITBUCKET"),
OTHERS("OTHERS");
private String value;
VcsTypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static VcsTypeEnum fromValue(String value) {
for (VcsTypeEnum b : VcsTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
public static final String JSON_PROPERTY_VCS_TYPE = "vcsType";
private VcsTypeEnum vcsType;
public GitRepositoryResource id(Long id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public GitRepositoryResource testProjectId(Long testProjectId) {
this.testProjectId = testProjectId;
return this;
}
/**
* Get testProjectId
* @return testProjectId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TEST_PROJECT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getTestProjectId() {
return testProjectId;
}
public void setTestProjectId(Long testProjectId) {
this.testProjectId = testProjectId;
}
public GitRepositoryResource name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public GitRepositoryResource repository(String repository) {
this.repository = repository;
return this;
}
/**
* Get repository
* @return repository
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_REPOSITORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRepository() {
return repository;
}
public void setRepository(String repository) {
this.repository = repository;
}
public GitRepositoryResource branch(String branch) {
this.branch = branch;
return this;
}
/**
* Get branch
* @return branch
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BRANCH)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBranch() {
return branch;
}
public void setBranch(String branch) {
this.branch = branch;
}
public GitRepositoryResource username(String username) {
this.username = username;
return this;
}
/**
* Get username
* @return username
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_USERNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public GitRepositoryResource password(String password) {
this.password = password;
return this;
}
/**
* Get password
* @return password
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public GitRepositoryResource projectId(Long projectId) {
this.projectId = projectId;
return this;
}
/**
* Get projectId
* @return projectId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROJECT_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getProjectId() {
return projectId;
}
public void setProjectId(Long projectId) {
this.projectId = projectId;
}
public GitRepositoryResource teamId(Long teamId) {
this.teamId = teamId;
return this;
}
/**
* Get teamId
* @return teamId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TEAM_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getTeamId() {
return teamId;
}
public void setTeamId(Long teamId) {
this.teamId = teamId;
}
public GitRepositoryResource createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public GitRepositoryResource updatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* Get updatedAt
* @return updatedAt
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_UPDATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
}
public GitRepositoryResource description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public GitRepositoryResource vcsType(VcsTypeEnum vcsType) {
this.vcsType = vcsType;
return this;
}
/**
* Get vcsType
* @return vcsType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_VCS_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public VcsTypeEnum getVcsType() {
return vcsType;
}
public void setVcsType(VcsTypeEnum vcsType) {
this.vcsType = vcsType;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GitRepositoryResource gitRepositoryResource = (GitRepositoryResource) o;
return Objects.equals(this.id, gitRepositoryResource.id) &&
Objects.equals(this.testProjectId, gitRepositoryResource.testProjectId) &&
Objects.equals(this.name, gitRepositoryResource.name) &&
Objects.equals(this.repository, gitRepositoryResource.repository) &&
Objects.equals(this.branch, gitRepositoryResource.branch) &&
Objects.equals(this.username, gitRepositoryResource.username) &&
Objects.equals(this.password, gitRepositoryResource.password) &&
Objects.equals(this.projectId, gitRepositoryResource.projectId) &&
Objects.equals(this.teamId, gitRepositoryResource.teamId) &&
Objects.equals(this.createdAt, gitRepositoryResource.createdAt) &&
Objects.equals(this.updatedAt, gitRepositoryResource.updatedAt) &&
Objects.equals(this.description, gitRepositoryResource.description) &&
Objects.equals(this.vcsType, gitRepositoryResource.vcsType);
}
@Override
public int hashCode() {
return Objects.hash(id, testProjectId, name, repository, branch, username, password, projectId, teamId, createdAt, updatedAt, description, vcsType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GitRepositoryResource {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" testProjectId: ").append(toIndentedString(testProjectId)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" repository: ").append(toIndentedString(repository)).append("\n");
sb.append(" branch: ").append(toIndentedString(branch)).append("\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).append("\n");
sb.append(" projectId: ").append(toIndentedString(projectId)).append("\n");
sb.append(" teamId: ").append(toIndentedString(teamId)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" vcsType: ").append(toIndentedString(vcsType)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}