net.finmath.smartcontract.model.PaymentFrequency Maven / Gradle / Ivy
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;
/**
* PaymentFrequency
*/
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-05T10:54:28.421239+01:00[Europe/Berlin]")
public class PaymentFrequency {
@JsonProperty("periodMultiplier")
private Integer periodMultiplier;
@JsonProperty("period")
private String period;
@JsonProperty("fullName")
private String fullName;
public PaymentFrequency periodMultiplier(Integer periodMultiplier) {
this.periodMultiplier = periodMultiplier;
return this;
}
/**
* Get periodMultiplier
* minimum: 1
* @return periodMultiplier
*/
@NotNull @Min(1)
@Schema(name = "periodMultiplier", requiredMode = Schema.RequiredMode.REQUIRED)
public Integer getPeriodMultiplier() {
return periodMultiplier;
}
public void setPeriodMultiplier(Integer periodMultiplier) {
this.periodMultiplier = periodMultiplier;
}
public PaymentFrequency period(String period) {
this.period = period;
return this;
}
/**
* Get period
* @return period
*/
@NotNull @Pattern(regexp = "^[DMY]$")
@Schema(name = "period", requiredMode = Schema.RequiredMode.REQUIRED)
public String getPeriod() {
return period;
}
public void setPeriod(String period) {
this.period = period;
}
public PaymentFrequency 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;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PaymentFrequency paymentFrequency = (PaymentFrequency) o;
return Objects.equals(this.periodMultiplier, paymentFrequency.periodMultiplier) &&
Objects.equals(this.period, paymentFrequency.period) &&
Objects.equals(this.fullName, paymentFrequency.fullName);
}
@Override
public int hashCode() {
return Objects.hash(periodMultiplier, period, fullName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PaymentFrequency {\n");
sb.append(" periodMultiplier: ").append(toIndentedString(periodMultiplier)).append("\n");
sb.append(" period: ").append(toIndentedString(period)).append("\n");
sb.append(" fullName: ").append(toIndentedString(fullName)).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