net.finmath.smartcontract.model.Counterparty Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-smart-derivative-contract Show documentation
Show all versions of finmath-smart-derivative-contract Show documentation
Project to support the implementation a of smart derivative contract.
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;
/**
* Counterparty
*/
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-05T10:54:28.421239+01:00[Europe/Berlin]")
public class Counterparty {
@JsonProperty("bicCode")
private String bicCode;
@JsonProperty("fullName")
private String fullName;
@JsonProperty("baseUrl")
private String baseUrl;
public Counterparty bicCode(String bicCode) {
this.bicCode = bicCode;
return this;
}
/**
* Get bicCode
* @return bicCode
*/
@NotNull @Pattern(regexp = "^[A-Z0-9]{4}[A-Z]{2}[A-Z0-9]{2,5}$")
@Schema(name = "bicCode", requiredMode = Schema.RequiredMode.REQUIRED)
public String getBicCode() {
return bicCode;
}
public void setBicCode(String bicCode) {
this.bicCode = bicCode;
}
public Counterparty fullName(String fullName) {
this.fullName = fullName;
return this;
}
/**
* Get fullName
* @return fullName
*/
@NotNull
@Schema(name = "fullName", requiredMode = Schema.RequiredMode.REQUIRED)
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName;
}
public Counterparty baseUrl(String baseUrl) {
this.baseUrl = baseUrl;
return this;
}
/**
* Get baseUrl
* @return baseUrl
*/
@NotNull
@Schema(name = "baseUrl", requiredMode = Schema.RequiredMode.REQUIRED)
public String getBaseUrl() {
return baseUrl;
}
public void setBaseUrl(String baseUrl) {
this.baseUrl = baseUrl;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Counterparty counterparty = (Counterparty) o;
return Objects.equals(this.bicCode, counterparty.bicCode) &&
Objects.equals(this.fullName, counterparty.fullName) &&
Objects.equals(this.baseUrl, counterparty.baseUrl);
}
@Override
public int hashCode() {
return Objects.hash(bicCode, fullName, baseUrl);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Counterparty {\n");
sb.append(" bicCode: ").append(toIndentedString(bicCode)).append("\n");
sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n");
sb.append(" baseUrl: ").append(toIndentedString(baseUrl)).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