Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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 DayTimeRestriction type.
*/
public class DayTimeRestriction {
private Boolean monday;
private Boolean tuesday;
private Boolean wednesday;
private Boolean thursday;
private Boolean friday;
private Boolean saturday;
private Boolean sunday;
private String timeFrom;
private String timeTo;
/**
* Default constructor.
*/
public DayTimeRestriction() {
}
/**
* Initialization constructor.
* @param monday Boolean value for monday.
* @param tuesday Boolean value for tuesday.
* @param wednesday Boolean value for wednesday.
* @param thursday Boolean value for thursday.
* @param friday Boolean value for friday.
* @param saturday Boolean value for saturday.
* @param sunday Boolean value for sunday.
* @param timeFrom String value for timeFrom.
* @param timeTo String value for timeTo.
*/
public DayTimeRestriction(
Boolean monday,
Boolean tuesday,
Boolean wednesday,
Boolean thursday,
Boolean friday,
Boolean saturday,
Boolean sunday,
String timeFrom,
String timeTo) {
this.monday = monday;
this.tuesday = tuesday;
this.wednesday = wednesday;
this.thursday = thursday;
this.friday = friday;
this.saturday = saturday;
this.sunday = sunday;
this.timeFrom = timeFrom;
this.timeTo = timeTo;
}
/**
* Getter for Monday.
* True if card could be used on a Monday, else false
* @return Returns the Boolean
*/
@JsonGetter("Monday")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Boolean getMonday() {
return monday;
}
/**
* Setter for Monday.
* True if card could be used on a Monday, else false
* @param monday Value for Boolean
*/
@JsonSetter("Monday")
public void setMonday(Boolean monday) {
this.monday = monday;
}
/**
* Getter for Tuesday.
* True if card could be used on a Tuesday, else false.
* @return Returns the Boolean
*/
@JsonGetter("Tuesday")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Boolean getTuesday() {
return tuesday;
}
/**
* Setter for Tuesday.
* True if card could be used on a Tuesday, else false.
* @param tuesday Value for Boolean
*/
@JsonSetter("Tuesday")
public void setTuesday(Boolean tuesday) {
this.tuesday = tuesday;
}
/**
* Getter for Wednesday.
* True if card could be used on a Wednesday, else false.
* @return Returns the Boolean
*/
@JsonGetter("Wednesday")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Boolean getWednesday() {
return wednesday;
}
/**
* Setter for Wednesday.
* True if card could be used on a Wednesday, else false.
* @param wednesday Value for Boolean
*/
@JsonSetter("Wednesday")
public void setWednesday(Boolean wednesday) {
this.wednesday = wednesday;
}
/**
* Getter for Thursday.
* True if card could be used on a Thursday, else false
* @return Returns the Boolean
*/
@JsonGetter("Thursday")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Boolean getThursday() {
return thursday;
}
/**
* Setter for Thursday.
* True if card could be used on a Thursday, else false
* @param thursday Value for Boolean
*/
@JsonSetter("Thursday")
public void setThursday(Boolean thursday) {
this.thursday = thursday;
}
/**
* Getter for Friday.
* True if card could be used on a Friday, else false
* @return Returns the Boolean
*/
@JsonGetter("Friday")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Boolean getFriday() {
return friday;
}
/**
* Setter for Friday.
* True if card could be used on a Friday, else false
* @param friday Value for Boolean
*/
@JsonSetter("Friday")
public void setFriday(Boolean friday) {
this.friday = friday;
}
/**
* Getter for Saturday.
* True if card could be used on a Saturday, else false
* @return Returns the Boolean
*/
@JsonGetter("Saturday")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Boolean getSaturday() {
return saturday;
}
/**
* Setter for Saturday.
* True if card could be used on a Saturday, else false
* @param saturday Value for Boolean
*/
@JsonSetter("Saturday")
public void setSaturday(Boolean saturday) {
this.saturday = saturday;
}
/**
* Getter for Sunday.
* True if card could be used on a Sunday, else false.
* @return Returns the Boolean
*/
@JsonGetter("Sunday")
@JsonInclude(JsonInclude.Include.NON_NULL)
public Boolean getSunday() {
return sunday;
}
/**
* Setter for Sunday.
* True if card could be used on a Sunday, else false.
* @param sunday Value for Boolean
*/
@JsonSetter("Sunday")
public void setSunday(Boolean sunday) {
this.sunday = sunday;
}
/**
* Getter for TimeFrom.
* Card could be used from this time in a day. Format: HH:mm (24-hour format) Note: 1. Clients
* to convert this to appropriate DateTime or TimeSpan type. “00:00” is the lowest time value
* and “23:59” is the highest time value.
* @return Returns the String
*/
@JsonGetter("TimeFrom")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getTimeFrom() {
return timeFrom;
}
/**
* Setter for TimeFrom.
* Card could be used from this time in a day. Format: HH:mm (24-hour format) Note: 1. Clients
* to convert this to appropriate DateTime or TimeSpan type. “00:00” is the lowest time value
* and “23:59” is the highest time value.
* @param timeFrom Value for String
*/
@JsonSetter("TimeFrom")
public void setTimeFrom(String timeFrom) {
this.timeFrom = timeFrom;
}
/**
* Getter for TimeTo.
* Card could be used up to this time in a day. Format: HH:mm (24-hour format) Note: 1. Clients
* to convert this to appropriate DateTime or TimeSpan type. “00:00” is the lowest time value
* and “23:59” is the highest time value.
* @return Returns the String
*/
@JsonGetter("TimeTo")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getTimeTo() {
return timeTo;
}
/**
* Setter for TimeTo.
* Card could be used up to this time in a day. Format: HH:mm (24-hour format) Note: 1. Clients
* to convert this to appropriate DateTime or TimeSpan type. “00:00” is the lowest time value
* and “23:59” is the highest time value.
* @param timeTo Value for String
*/
@JsonSetter("TimeTo")
public void setTimeTo(String timeTo) {
this.timeTo = timeTo;
}
/**
* Converts this DayTimeRestriction into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "DayTimeRestriction [" + "monday=" + monday + ", tuesday=" + tuesday + ", wednesday="
+ wednesday + ", thursday=" + thursday + ", friday=" + friday + ", saturday="
+ saturday + ", sunday=" + sunday + ", timeFrom=" + timeFrom + ", timeTo=" + timeTo
+ "]";
}
/**
* Builds a new {@link DayTimeRestriction.Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link DayTimeRestriction.Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder()
.monday(getMonday())
.tuesday(getTuesday())
.wednesday(getWednesday())
.thursday(getThursday())
.friday(getFriday())
.saturday(getSaturday())
.sunday(getSunday())
.timeFrom(getTimeFrom())
.timeTo(getTimeTo());
return builder;
}
/**
* Class to build instances of {@link DayTimeRestriction}.
*/
public static class Builder {
private Boolean monday;
private Boolean tuesday;
private Boolean wednesday;
private Boolean thursday;
private Boolean friday;
private Boolean saturday;
private Boolean sunday;
private String timeFrom;
private String timeTo;
/**
* Setter for monday.
* @param monday Boolean value for monday.
* @return Builder
*/
public Builder monday(Boolean monday) {
this.monday = monday;
return this;
}
/**
* Setter for tuesday.
* @param tuesday Boolean value for tuesday.
* @return Builder
*/
public Builder tuesday(Boolean tuesday) {
this.tuesday = tuesday;
return this;
}
/**
* Setter for wednesday.
* @param wednesday Boolean value for wednesday.
* @return Builder
*/
public Builder wednesday(Boolean wednesday) {
this.wednesday = wednesday;
return this;
}
/**
* Setter for thursday.
* @param thursday Boolean value for thursday.
* @return Builder
*/
public Builder thursday(Boolean thursday) {
this.thursday = thursday;
return this;
}
/**
* Setter for friday.
* @param friday Boolean value for friday.
* @return Builder
*/
public Builder friday(Boolean friday) {
this.friday = friday;
return this;
}
/**
* Setter for saturday.
* @param saturday Boolean value for saturday.
* @return Builder
*/
public Builder saturday(Boolean saturday) {
this.saturday = saturday;
return this;
}
/**
* Setter for sunday.
* @param sunday Boolean value for sunday.
* @return Builder
*/
public Builder sunday(Boolean sunday) {
this.sunday = sunday;
return this;
}
/**
* Setter for timeFrom.
* @param timeFrom String value for timeFrom.
* @return Builder
*/
public Builder timeFrom(String timeFrom) {
this.timeFrom = timeFrom;
return this;
}
/**
* Setter for timeTo.
* @param timeTo String value for timeTo.
* @return Builder
*/
public Builder timeTo(String timeTo) {
this.timeTo = timeTo;
return this;
}
/**
* Builds a new {@link DayTimeRestriction} object using the set fields.
* @return {@link DayTimeRestriction}
*/
public DayTimeRestriction build() {
return new DayTimeRestriction(monday, tuesday, wednesday, thursday, friday, saturday,
sunday, timeFrom, timeTo);
}
}
}