com.shell.apitest.models.CardDetailsResponseCardBlockSchedulesItemsAllOf0 Maven / Gradle / Ivy
/*
* ShellCardManagementAPIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.shell.apitest.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
/**
* This is a model class for CardDetailsResponseCardBlockSchedulesItemsAllOf0 type.
*/
public class CardDetailsResponseCardBlockSchedulesItemsAllOf0 {
private String fromDate;
private String toDate;
/**
* Default constructor.
*/
public CardDetailsResponseCardBlockSchedulesItemsAllOf0() {
}
/**
* Initialization constructor.
* @param fromDate String value for fromDate.
* @param toDate String value for toDate.
*/
public CardDetailsResponseCardBlockSchedulesItemsAllOf0(
String fromDate,
String toDate) {
this.fromDate = fromDate;
this.toDate = toDate;
}
/**
* Getter for FromDate.
* Effective start date of Block / Unblock
* @return Returns the String
*/
@JsonGetter("FromDate")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getFromDate() {
return fromDate;
}
/**
* Setter for FromDate.
* Effective start date of Block / Unblock
* @param fromDate Value for String
*/
@JsonSetter("FromDate")
public void setFromDate(String fromDate) {
this.fromDate = fromDate;
}
/**
* Getter for ToDate.
* Effective end date of Block / Unblock
* @return Returns the String
*/
@JsonGetter("ToDate")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getToDate() {
return toDate;
}
/**
* Setter for ToDate.
* Effective end date of Block / Unblock
* @param toDate Value for String
*/
@JsonSetter("ToDate")
public void setToDate(String toDate) {
this.toDate = toDate;
}
/**
* Converts this CardDetailsResponseCardBlockSchedulesItemsAllOf0 into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "CardDetailsResponseCardBlockSchedulesItemsAllOf0 [" + "fromDate=" + fromDate
+ ", toDate=" + toDate + "]";
}
/**
* Builds a new {@link CardDetailsResponseCardBlockSchedulesItemsAllOf0.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link CardDetailsResponseCardBlockSchedulesItemsAllOf0.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.fromDate(getFromDate())
.toDate(getToDate());
return builder;
}
/**
* Class to build instances of {@link CardDetailsResponseCardBlockSchedulesItemsAllOf0}.
*/
public static class Builder {
private String fromDate;
private String toDate;
/**
* Setter for fromDate.
* @param fromDate String value for fromDate.
* @return Builder
*/
public Builder fromDate(String fromDate) {
this.fromDate = fromDate;
return this;
}
/**
* Setter for toDate.
* @param toDate String value for toDate.
* @return Builder
*/
public Builder toDate(String toDate) {
this.toDate = toDate;
return this;
}
/**
* Builds a new {@link CardDetailsResponseCardBlockSchedulesItemsAllOf0} object using the
* set fields.
* @return {@link CardDetailsResponseCardBlockSchedulesItemsAllOf0}
*/
public CardDetailsResponseCardBlockSchedulesItemsAllOf0 build() {
return new CardDetailsResponseCardBlockSchedulesItemsAllOf0(fromDate, toDate);
}
}
}