Class Policy


  • public class Policy
    extends java.lang.Object
    Policy - The time off policy associated with this balance
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Policy.Builder  
    • Constructor Summary

      Constructors 
      Constructor Description
      Policy()  
      Policy​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> name, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description, org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffBalancesType> type, org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffBalancesDurationUnit> durationUnit, org.openapitools.jackson.nullable.JsonNullable<? extends java.util.List<Reason>> reasons, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdAt, org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedAt)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Policy.Builder builder()  
      org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdAt()
      The created_at date of this policy
      org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description()
      The description of this policy
      org.openapitools.jackson.nullable.JsonNullable<TimeOffBalancesDurationUnit> durationUnit()
      The duration unit of the current policy
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id()
      Unique identifier
      org.openapitools.jackson.nullable.JsonNullable<java.lang.String> name()
      The name of this policy
      org.openapitools.jackson.nullable.JsonNullable<java.util.List<Reason>> reasons()  
      org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId()
      Provider's unique identifier
      java.lang.String toString()  
      org.openapitools.jackson.nullable.JsonNullable<TimeOffBalancesType> type()
      The type of this policy
      org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedAt()
      The updated_at date of this policy
      Policy withCreatedAt​(java.time.OffsetDateTime createdAt)
      The created_at date of this policy
      Policy withCreatedAt​(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdAt)
      The created_at date of this policy
      Policy withDescription​(java.lang.String description)
      The description of this policy
      Policy withDescription​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description)
      The description of this policy
      Policy withDurationUnit​(TimeOffBalancesDurationUnit durationUnit)
      The duration unit of the current policy
      Policy withDurationUnit​(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffBalancesDurationUnit> durationUnit)
      The duration unit of the current policy
      Policy withId​(java.lang.String id)
      Unique identifier
      Policy withId​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id)
      Unique identifier
      Policy withName​(java.lang.String name)
      The name of this policy
      Policy withName​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> name)
      The name of this policy
      Policy withReasons​(java.util.List<Reason> reasons)  
      Policy withReasons​(org.openapitools.jackson.nullable.JsonNullable<? extends java.util.List<Reason>> reasons)  
      Policy withRemoteId​(java.lang.String remoteId)
      Provider's unique identifier
      Policy withRemoteId​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId)
      Provider's unique identifier
      Policy withType​(TimeOffBalancesType type)
      The type of this policy
      Policy withType​(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffBalancesType> type)
      The type of this policy
      Policy withUpdatedAt​(java.time.OffsetDateTime updatedAt)
      The updated_at date of this policy
      Policy withUpdatedAt​(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedAt)
      The updated_at date of this policy
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Policy

        public Policy​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id,
                      org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId,
                      org.openapitools.jackson.nullable.JsonNullable<java.lang.String> name,
                      org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description,
                      org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffBalancesType> type,
                      org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffBalancesDurationUnit> durationUnit,
                      org.openapitools.jackson.nullable.JsonNullable<? extends java.util.List<Reason>> reasons,
                      org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdAt,
                      org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedAt)
      • Policy

        public Policy()
    • Method Detail

      • id

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id()
        Unique identifier
      • remoteId

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId()
        Provider's unique identifier
      • name

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> name()
        The name of this policy
      • description

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description()
        The description of this policy
      • type

        public org.openapitools.jackson.nullable.JsonNullable<TimeOffBalancesType> type()
        The type of this policy
      • durationUnit

        public org.openapitools.jackson.nullable.JsonNullable<TimeOffBalancesDurationUnit> durationUnit()
        The duration unit of the current policy
      • reasons

        public org.openapitools.jackson.nullable.JsonNullable<java.util.List<Reason>> reasons()
      • createdAt

        public org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdAt()
        The created_at date of this policy
      • updatedAt

        public org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedAt()
        The updated_at date of this policy
      • withId

        public Policy withId​(java.lang.String id)
        Unique identifier
      • withId

        public Policy withId​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id)
        Unique identifier
      • withRemoteId

        public Policy withRemoteId​(java.lang.String remoteId)
        Provider's unique identifier
      • withRemoteId

        public Policy withRemoteId​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> remoteId)
        Provider's unique identifier
      • withName

        public Policy withName​(java.lang.String name)
        The name of this policy
      • withName

        public Policy withName​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> name)
        The name of this policy
      • withDescription

        public Policy withDescription​(java.lang.String description)
        The description of this policy
      • withDescription

        public Policy withDescription​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description)
        The description of this policy
      • withType

        public Policy withType​(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffBalancesType> type)
        The type of this policy
      • withDurationUnit

        public Policy withDurationUnit​(org.openapitools.jackson.nullable.JsonNullable<? extends TimeOffBalancesDurationUnit> durationUnit)
        The duration unit of the current policy
      • withReasons

        public Policy withReasons​(java.util.List<Reason> reasons)
      • withReasons

        public Policy withReasons​(org.openapitools.jackson.nullable.JsonNullable<? extends java.util.List<Reason>> reasons)
      • withCreatedAt

        public Policy withCreatedAt​(java.time.OffsetDateTime createdAt)
        The created_at date of this policy
      • withCreatedAt

        public Policy withCreatedAt​(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> createdAt)
        The created_at date of this policy
      • withUpdatedAt

        public Policy withUpdatedAt​(java.time.OffsetDateTime updatedAt)
        The updated_at date of this policy
      • withUpdatedAt

        public Policy withUpdatedAt​(org.openapitools.jackson.nullable.JsonNullable<java.time.OffsetDateTime> updatedAt)
        The updated_at date of this policy
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object