Interface ValidFromAndUntilValue
public interface ValidFromAndUntilValue
ValidFromAndUntilValue
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ValidFromAndUntilValue validFromAndUntilValue = ValidFromAndUntilValue.builder()
.validFrom("{validFrom}")
.validUntil("{validUntil}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for ValidFromAndUntilValuebuilder(ValidFromAndUntilValue template) create builder for ValidFromAndUntilValue instancecopyDeep()static ValidFromAndUntilValuedeepCopy(ValidFromAndUntilValue template) factory method to create a deep copy of ValidFromAndUntilValue@NotNull StringDate and time (UTC) from when the Discount is effective.@NotNull StringDate and time (UTC) until when the Discount is effective.static ValidFromAndUntilValueof()factory methodstatic ValidFromAndUntilValueof(ValidFromAndUntilValue template) factory method to create a shallow copy ValidFromAndUntilValuevoidsetValidFrom(String validFrom) Date and time (UTC) from when the Discount is effective.voidsetValidUntil(String validUntil) Date and time (UTC) until when the Discount is effective.static com.fasterxml.jackson.core.type.TypeReference<ValidFromAndUntilValue>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map function
-
Method Details
-
getValidFrom
Date and time (UTC) from when the Discount is effective.
- Returns:
- validFrom
-
getValidUntil
Date and time (UTC) until when the Discount is effective.
- Returns:
- validUntil
-
setValidFrom
Date and time (UTC) from when the Discount is effective.
- Parameters:
validFrom- value to be set
-
setValidUntil
Date and time (UTC) until when the Discount is effective.
- Parameters:
validUntil- value to be set
-
of
factory method- Returns:
- instance of ValidFromAndUntilValue
-
of
factory method to create a shallow copy ValidFromAndUntilValue- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ValidFromAndUntilValue copyDeep() -
deepCopy
factory method to create a deep copy of ValidFromAndUntilValue- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ValidFromAndUntilValue- Returns:
- builder
-
builder
create builder for ValidFromAndUntilValue instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withValidFromAndUntilValue
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-