All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.backbase.oss.boat.bay.client.model.BoatCapability Maven / Gradle / Ivy

There is a newer version: 0.17.37
Show newest version
/*
 * Boat Bay Upload Server
 * Endpoints for uploading Specs to boat bay
 *
 * 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.backbase.oss.boat.bay.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.backbase.oss.boat.bay.client.model.BoatLintReport;
import com.backbase.oss.boat.bay.client.model.BoatService;
import com.backbase.oss.boat.bay.client.model.BoatStatistics;
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 java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * BoatCapability
 */
@JsonPropertyOrder({
  BoatCapability.JSON_PROPERTY_ID,
  BoatCapability.JSON_PROPERTY_KEY,
  BoatCapability.JSON_PROPERTY_NAME,
  BoatCapability.JSON_PROPERTY_CONTENT,
  BoatCapability.JSON_PROPERTY_CREATED_ON,
  BoatCapability.JSON_PROPERTY_CREATED_BY,
  BoatCapability.JSON_PROPERTY_SERVICES,
  BoatCapability.JSON_PROPERTY_LAST_LINT_REPORT,
  BoatCapability.JSON_PROPERTY_STATISTICS
})
@lombok.AllArgsConstructor @lombok.Builder
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-07-13T07:21:44.607556217Z[Etc/UTC]")
public class BoatCapability {
  public static final String JSON_PROPERTY_ID = "id";
  private BigDecimal id;

  public static final String JSON_PROPERTY_KEY = "key";
  private String key;

  public static final String JSON_PROPERTY_NAME = "name";
  private String name;

  public static final String JSON_PROPERTY_CONTENT = "content";
  private String content;

  public static final String JSON_PROPERTY_CREATED_ON = "createdOn";
  private OffsetDateTime createdOn;

  public static final String JSON_PROPERTY_CREATED_BY = "createdBy";
  private String createdBy;

  public static final String JSON_PROPERTY_SERVICES = "services";
  private List services;

  public static final String JSON_PROPERTY_LAST_LINT_REPORT = "lastLintReport";
  private BoatLintReport lastLintReport;

  public static final String JSON_PROPERTY_STATISTICS = "statistics";
  private BoatStatistics statistics;

  public BoatCapability() {
  }

  public BoatCapability id(BigDecimal id) {
    
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public BigDecimal getId() {
    return id;
  }


  @JsonProperty(JSON_PROPERTY_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setId(BigDecimal id) {
    this.id = id;
  }


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

   /**
   * Get key
   * @return key
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_KEY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getKey() {
    return key;
  }


  @JsonProperty(JSON_PROPERTY_KEY)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setKey(String key) {
    this.key = key;
  }


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

   /**
   * Get name
   * @return name
  **/
  @javax.annotation.Nonnull
  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getName() {
    return name;
  }


  @JsonProperty(JSON_PROPERTY_NAME)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setName(String name) {
    this.name = name;
  }


  public BoatCapability content(String content) {
    
    this.content = content;
    return this;
  }

   /**
   * Get content
   * @return content
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_CONTENT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getContent() {
    return content;
  }


  @JsonProperty(JSON_PROPERTY_CONTENT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setContent(String content) {
    this.content = content;
  }


  public BoatCapability createdOn(OffsetDateTime createdOn) {
    
    this.createdOn = createdOn;
    return this;
  }

   /**
   * Get createdOn
   * @return createdOn
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_CREATED_ON)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public OffsetDateTime getCreatedOn() {
    return createdOn;
  }


  @JsonProperty(JSON_PROPERTY_CREATED_ON)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCreatedOn(OffsetDateTime createdOn) {
    this.createdOn = createdOn;
  }


  public BoatCapability createdBy(String createdBy) {
    
    this.createdBy = createdBy;
    return this;
  }

   /**
   * Get createdBy
   * @return createdBy
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_CREATED_BY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public String getCreatedBy() {
    return createdBy;
  }


  @JsonProperty(JSON_PROPERTY_CREATED_BY)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCreatedBy(String createdBy) {
    this.createdBy = createdBy;
  }


  public BoatCapability services(List services) {
    
    this.services = services;
    return this;
  }

  public BoatCapability addServicesItem(BoatService servicesItem) {
    if (this.services == null) {
      this.services = new ArrayList<>();
    }
    this.services.add(servicesItem);
    return this;
  }

   /**
   * Get services
   * @return services
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_SERVICES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getServices() {
    return services;
  }


  @JsonProperty(JSON_PROPERTY_SERVICES)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setServices(List services) {
    this.services = services;
  }


  public BoatCapability lastLintReport(BoatLintReport lastLintReport) {
    
    this.lastLintReport = lastLintReport;
    return this;
  }

   /**
   * Get lastLintReport
   * @return lastLintReport
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_LAST_LINT_REPORT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public BoatLintReport getLastLintReport() {
    return lastLintReport;
  }


  @JsonProperty(JSON_PROPERTY_LAST_LINT_REPORT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setLastLintReport(BoatLintReport lastLintReport) {
    this.lastLintReport = lastLintReport;
  }


  public BoatCapability statistics(BoatStatistics statistics) {
    
    this.statistics = statistics;
    return this;
  }

   /**
   * Get statistics
   * @return statistics
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_STATISTICS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public BoatStatistics getStatistics() {
    return statistics;
  }


  @JsonProperty(JSON_PROPERTY_STATISTICS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setStatistics(BoatStatistics statistics) {
    this.statistics = statistics;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BoatCapability boatCapability = (BoatCapability) o;
    return Objects.equals(this.id, boatCapability.id) &&
        Objects.equals(this.key, boatCapability.key) &&
        Objects.equals(this.name, boatCapability.name) &&
        Objects.equals(this.content, boatCapability.content) &&
        Objects.equals(this.createdOn, boatCapability.createdOn) &&
        Objects.equals(this.createdBy, boatCapability.createdBy) &&
        Objects.equals(this.services, boatCapability.services) &&
        Objects.equals(this.lastLintReport, boatCapability.lastLintReport) &&
        Objects.equals(this.statistics, boatCapability.statistics);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, key, name, content, createdOn, createdBy, services, lastLintReport, statistics);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BoatCapability {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    key: ").append(toIndentedString(key)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    content: ").append(toIndentedString(content)).append("\n");
    sb.append("    createdOn: ").append(toIndentedString(createdOn)).append("\n");
    sb.append("    createdBy: ").append(toIndentedString(createdBy)).append("\n");
    sb.append("    services: ").append(toIndentedString(services)).append("\n");
    sb.append("    lastLintReport: ").append(toIndentedString(lastLintReport)).append("\n");
    sb.append("    statistics: ").append(toIndentedString(statistics)).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    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy