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 instancestatic ValidFromAndUntilValue
deepCopy
(ValidFromAndUntilValue template) factory method to create a deep copy of ValidFromAndUntilValue@NotNull String
Date and time (UTC) from when the Discount is effective.@NotNull String
Date and time (UTC) until when the Discount is effective.static ValidFromAndUntilValue
of()
factory methodstatic ValidFromAndUntilValue
of
(ValidFromAndUntilValue template) factory method to create a shallow copy ValidFromAndUntilValuevoid
setValidFrom
(String validFrom) Date and time (UTC) from when the Discount is effective.void
setValidUntil
(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> T
accessor 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
-
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
-