All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infobip.model.ViberDeliveryTime Maven / Gradle / Ivy

/*
 * This class is auto generated from the Infobip OpenAPI specification
 * through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
 * powered by the OpenAPI Generator (https://openapi-generator.tech).
 *
 * Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
 * or contact us @ [email protected].
 */

package com.infobip.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

/**
 * The exact time of the day. The time is expressed in the UTC time zone.
 */
public class ViberDeliveryTime {

    private Integer hour;

    private Integer minute;

    /**
     * Sets hour.
     * 

* Field description: * Hour when the time window opens when used in the `from` property or closes when used in the `to` property. *

* The field is required. * * @param hour * @return This {@link ViberDeliveryTime instance}. */ public ViberDeliveryTime hour(Integer hour) { this.hour = hour; return this; } /** * Returns hour. *

* Field description: * Hour when the time window opens when used in the `from` property or closes when used in the `to` property. *

* The field is required. * * @return hour */ @JsonProperty("hour") public Integer getHour() { return hour; } /** * Sets hour. *

* Field description: * Hour when the time window opens when used in the `from` property or closes when used in the `to` property. *

* The field is required. * * @param hour */ @JsonProperty("hour") public void setHour(Integer hour) { this.hour = hour; } /** * Sets minute. *

* Field description: * Minute when the time window opens when used in the `from` property or closes when used in the `to` property. *

* The field is required. * * @param minute * @return This {@link ViberDeliveryTime instance}. */ public ViberDeliveryTime minute(Integer minute) { this.minute = minute; return this; } /** * Returns minute. *

* Field description: * Minute when the time window opens when used in the `from` property or closes when used in the `to` property. *

* The field is required. * * @return minute */ @JsonProperty("minute") public Integer getMinute() { return minute; } /** * Sets minute. *

* Field description: * Minute when the time window opens when used in the `from` property or closes when used in the `to` property. *

* The field is required. * * @param minute */ @JsonProperty("minute") public void setMinute(Integer minute) { this.minute = minute; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ViberDeliveryTime viberDeliveryTime = (ViberDeliveryTime) o; return Objects.equals(this.hour, viberDeliveryTime.hour) && Objects.equals(this.minute, viberDeliveryTime.minute); } @Override public int hashCode() { return Objects.hash(hour, minute); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class ViberDeliveryTime {") .append(newLine) .append(" hour: ") .append(toIndentedString(hour)) .append(newLine) .append(" minute: ") .append(toIndentedString(minute)) .append(newLine) .append("}") .toString(); } private String toIndentedString(Object o) { if (o == null) { return "null"; } String lineSeparator = System.lineSeparator(); String lineSeparatorFollowedByIndentation = lineSeparator + " "; return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy