cl.tinet.devops.metrics.gen.bitbucket.model.Project.java Source code

Java tutorial

Introduction

Here is the source code for cl.tinet.devops.metrics.gen.bitbucket.model.Project.java

Source

/**
 * Bitbucket API
 * Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework.
 *
 * OpenAPI spec version: 2.0
 * Contact: support@bitbucket.org
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package cl.tinet.devops.metrics.gen.bitbucket.model;

import java.util.Objects;
import cl.tinet.devops.metrics.gen.bitbucket.model.Team;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.joda.time.DateTime;

/**
 * Project
 */
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-07-04T23:42:53.141-04:00")
public class Project extends Object {
    @JsonProperty("type")
    private String type = null;

    @JsonProperty("description")
    private String description = null;

    @JsonProperty("links")
    private Object links = null;

    @JsonProperty("name")
    private String name = null;

    @JsonProperty("created_on")
    private DateTime createdOn = null;

    @JsonProperty("key")
    private String key = null;

    @JsonProperty("owner")
    private Team owner = null;

    @JsonProperty("updated_on")
    private DateTime updatedOn = null;

    @JsonProperty("is_private")
    private Boolean isPrivate = null;

    @JsonProperty("uuid")
    private String uuid = null;

    public Project type(String type) {
        this.type = type;
        return this;
    }

    /**
    * Get type
    * @return type
    **/
    @ApiModelProperty(example = "null", required = true, value = "")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Project description(String description) {
        this.description = description;
        return this;
    }

    /**
    * Get description
    * @return description
    **/
    @ApiModelProperty(example = "null", value = "")
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Project links(Object links) {
        this.links = links;
        return this;
    }

    /**
    * Get links
    * @return links
    **/
    @ApiModelProperty(example = "null", value = "")
    public Object getLinks() {
        return links;
    }

    public void setLinks(Object links) {
        this.links = links;
    }

    public Project name(String name) {
        this.name = name;
        return this;
    }

    /**
    * The name of the project.
    * @return name
    **/
    @ApiModelProperty(example = "null", value = "The name of the project.")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Project createdOn(DateTime createdOn) {
        this.createdOn = createdOn;
        return this;
    }

    /**
    * Get createdOn
    * @return createdOn
    **/
    @ApiModelProperty(example = "null", value = "")
    public DateTime getCreatedOn() {
        return createdOn;
    }

    public void setCreatedOn(DateTime createdOn) {
        this.createdOn = createdOn;
    }

    public Project key(String key) {
        this.key = key;
        return this;
    }

    /**
    * The project's key.
    * @return key
    **/
    @ApiModelProperty(example = "null", value = "The project's key.")
    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Project owner(Team owner) {
        this.owner = owner;
        return this;
    }

    /**
    * Get owner
    * @return owner
    **/
    @ApiModelProperty(example = "null", value = "")
    public Team getOwner() {
        return owner;
    }

    public void setOwner(Team owner) {
        this.owner = owner;
    }

    public Project updatedOn(DateTime updatedOn) {
        this.updatedOn = updatedOn;
        return this;
    }

    /**
    * Get updatedOn
    * @return updatedOn
    **/
    @ApiModelProperty(example = "null", value = "")
    public DateTime getUpdatedOn() {
        return updatedOn;
    }

    public void setUpdatedOn(DateTime updatedOn) {
        this.updatedOn = updatedOn;
    }

    public Project isPrivate(Boolean isPrivate) {
        this.isPrivate = isPrivate;
        return this;
    }

    /**
    *  Indicates whether the project is publicly accessible, or whether it is private to the team and consequently only visible to team members. Note that private projects cannot contain public repositories.
    * @return isPrivate
    **/
    @ApiModelProperty(example = "null", value = " Indicates whether the project is publicly accessible, or whether it is private to the team and consequently only visible to team members. Note that private projects cannot contain public repositories.")
    public Boolean getIsPrivate() {
        return isPrivate;
    }

    public void setIsPrivate(Boolean isPrivate) {
        this.isPrivate = isPrivate;
    }

    public Project uuid(String uuid) {
        this.uuid = uuid;
        return this;
    }

    /**
    * The project's immutable id.
    * @return uuid
    **/
    @ApiModelProperty(example = "null", value = "The project's immutable id.")
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Project project = (Project) o;
        return Objects.equals(this.type, project.type) && Objects.equals(this.description, project.description)
                && Objects.equals(this.links, project.links) && Objects.equals(this.name, project.name)
                && Objects.equals(this.createdOn, project.createdOn) && Objects.equals(this.key, project.key)
                && Objects.equals(this.owner, project.owner) && Objects.equals(this.updatedOn, project.updatedOn)
                && Objects.equals(this.isPrivate, project.isPrivate) && Objects.equals(this.uuid, project.uuid)
                && super.equals(o);
    }

    @Override
    public int hashCode() {
        return Objects.hash(type, description, links, name, createdOn, key, owner, updatedOn, isPrivate, uuid,
                super.hashCode());
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class Project {\n");
        sb.append("    ").append(toIndentedString(super.toString())).append("\n");
        sb.append("    type: ").append(toIndentedString(type)).append("\n");
        sb.append("    description: ").append(toIndentedString(description)).append("\n");
        sb.append("    links: ").append(toIndentedString(links)).append("\n");
        sb.append("    name: ").append(toIndentedString(name)).append("\n");
        sb.append("    createdOn: ").append(toIndentedString(createdOn)).append("\n");
        sb.append("    key: ").append(toIndentedString(key)).append("\n");
        sb.append("    owner: ").append(toIndentedString(owner)).append("\n");
        sb.append("    updatedOn: ").append(toIndentedString(updatedOn)).append("\n");
        sb.append("    isPrivate: ").append(toIndentedString(isPrivate)).append("\n");
        sb.append("    uuid: ").append(toIndentedString(uuid)).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(java.lang.Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }
}