Class ValidFromAndUntilValueBuilder
java.lang.Object
com.commercetools.history.models.change_value.ValidFromAndUntilValueBuilder
- All Implemented Interfaces:
Builder<ValidFromAndUntilValue>
public class ValidFromAndUntilValueBuilder
extends Object
implements Builder<ValidFromAndUntilValue>
ValidFromAndUntilValueBuilder
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()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ValidFromAndUntilValue with checking for non-null required valuesbuilds ValidFromAndUntilValue without checking for non-null required valuesDate and time (UTC) from when the Discount is effective.Date and time (UTC) until when the Discount is effective.of()factory method for an instance of ValidFromAndUntilValueBuilderof(ValidFromAndUntilValue template) create builder for ValidFromAndUntilValue instanceDate and time (UTC) from when the Discount is effective.validUntil(String validUntil) Date and time (UTC) until when the Discount is effective.
-
Constructor Details
-
ValidFromAndUntilValueBuilder
public ValidFromAndUntilValueBuilder()
-
-
Method Details
-
validFrom
Date and time (UTC) from when the Discount is effective.
- Parameters:
validFrom- value to be set- Returns:
- Builder
-
validUntil
Date and time (UTC) until when the Discount is effective.
- Parameters:
validUntil- value to be set- Returns:
- Builder
-
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
-
build
builds ValidFromAndUntilValue with checking for non-null required values- Specified by:
buildin interfaceBuilder<ValidFromAndUntilValue>- Returns:
- ValidFromAndUntilValue
-
buildUnchecked
builds ValidFromAndUntilValue without checking for non-null required values- Returns:
- ValidFromAndUntilValue
-
of
factory method for an instance of ValidFromAndUntilValueBuilder- Returns:
- builder
-
of
create builder for ValidFromAndUntilValue instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-