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

net.finmath.smartcontract.model.FrontendItemSpec Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
package net.finmath.smartcontract.model;

import java.net.URI;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import org.openapitools.jackson.nullable.JsonNullable;
import java.time.OffsetDateTime;
import jakarta.validation.Valid;
import jakarta.validation.constraints.*;
import io.swagger.v3.oas.annotations.media.Schema;


import java.util.*;
import jakarta.annotation.Generated;

/**
 * FrontendItemSpec
 */

@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-05T10:54:28.421239+01:00[Europe/Berlin]")
public class FrontendItemSpec {

  @JsonProperty("symbol")
  private String symbol;

  @JsonProperty("curve")
  private String curve;

  @JsonProperty("itemType")
  private String itemType;

  @JsonProperty("tenor")
  private String tenor;

  public FrontendItemSpec symbol(String symbol) {
    this.symbol = symbol;
    return this;
  }

  /**
   * Get symbol
   * @return symbol
  */
  @NotNull 
  @Schema(name = "symbol", requiredMode = Schema.RequiredMode.REQUIRED)
  public String getSymbol() {
    return symbol;
  }

  public void setSymbol(String symbol) {
    this.symbol = symbol;
  }

  public FrontendItemSpec curve(String curve) {
    this.curve = curve;
    return this;
  }

  /**
   * Get curve
   * @return curve
  */
  @NotNull 
  @Schema(name = "curve", requiredMode = Schema.RequiredMode.REQUIRED)
  public String getCurve() {
    return curve;
  }

  public void setCurve(String curve) {
    this.curve = curve;
  }

  public FrontendItemSpec itemType(String itemType) {
    this.itemType = itemType;
    return this;
  }

  /**
   * Get itemType
   * @return itemType
  */
  @NotNull 
  @Schema(name = "itemType", requiredMode = Schema.RequiredMode.REQUIRED)
  public String getItemType() {
    return itemType;
  }

  public void setItemType(String itemType) {
    this.itemType = itemType;
  }

  public FrontendItemSpec tenor(String tenor) {
    this.tenor = tenor;
    return this;
  }

  /**
   * Get tenor
   * @return tenor
  */
  @NotNull @Pattern(regexp = "^[0-9]+[DMY]$") 
  @Schema(name = "tenor", requiredMode = Schema.RequiredMode.REQUIRED)
  public String getTenor() {
    return tenor;
  }

  public void setTenor(String tenor) {
    this.tenor = tenor;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FrontendItemSpec frontendItemSpec = (FrontendItemSpec) o;
    return Objects.equals(this.symbol, frontendItemSpec.symbol) &&
        Objects.equals(this.curve, frontendItemSpec.curve) &&
        Objects.equals(this.itemType, frontendItemSpec.itemType) &&
        Objects.equals(this.tenor, frontendItemSpec.tenor);
  }

  @Override
  public int hashCode() {
    return Objects.hash(symbol, curve, itemType, tenor);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FrontendItemSpec {\n");
    sb.append("    symbol: ").append(toIndentedString(symbol)).append("\n");
    sb.append("    curve: ").append(toIndentedString(curve)).append("\n");
    sb.append("    itemType: ").append(toIndentedString(itemType)).append("\n");
    sb.append("    tenor: ").append(toIndentedString(tenor)).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 - 2025 Weber Informatics LLC | Privacy Policy