Package io.voucherify.client.model
Class ValidityHoursDailyItem
java.lang.Object
io.voucherify.client.model.ValidityHoursDailyItem
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ValidityHoursDailyItem
extends Object
Defines the reccuring period(s) when the resource will be active.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets daysOfWeek -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDaysOfWeekItem(ValidityHoursDailyItem.DaysOfWeekEnum daysOfWeekItem) daysOfWeek(List<ValidityHoursDailyItem.DaysOfWeekEnum> daysOfWeek) booleanexpirationTime(String expirationTime) static ValidityHoursDailyItemCreate an instance of ValidityHoursDailyItem given an JSON stringInteger array corresponding to the particular days of the week in which the resource is valid.Defines the ending hour of validity in the HH:mm format.Defines the starting hour of validity in the HH:mm format.inthashCode()voidsetDaysOfWeek(List<ValidityHoursDailyItem.DaysOfWeekEnum> daysOfWeek) voidsetExpirationTime(String expirationTime) voidsetStartTime(String startTime) toJson()Convert an instance of ValidityHoursDailyItem to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_START_TIME
- See Also:
-
SERIALIZED_NAME_DAYS_OF_WEEK
- See Also:
-
SERIALIZED_NAME_EXPIRATION_TIME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ValidityHoursDailyItem
public ValidityHoursDailyItem()
-
-
Method Details
-
startTime
-
getStartTime
Defines the starting hour of validity in the HH:mm format. The resource is *inactive before* this time.- Returns:
- startTime
-
setStartTime
-
daysOfWeek
-
addDaysOfWeekItem
public ValidityHoursDailyItem addDaysOfWeekItem(ValidityHoursDailyItem.DaysOfWeekEnum daysOfWeekItem) -
getDaysOfWeek
Integer array corresponding to the particular days of the week in which the resource is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday- Returns:
- daysOfWeek
-
setDaysOfWeek
-
expirationTime
-
getExpirationTime
Defines the ending hour of validity in the HH:mm format. The resource is *inactive after* this time.- Returns:
- expirationTime
-
setExpirationTime
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of ValidityHoursDailyItem given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ValidityHoursDailyItem
- Throws:
IOException- if the JSON string is invalid with respect to ValidityHoursDailyItem
-
toJson
Convert an instance of ValidityHoursDailyItem to an JSON string- Returns:
- JSON string
-