Class CloudEventsFormatBuilder
java.lang.Object
com.commercetools.api.models.subscription.CloudEventsFormatBuilder
- All Implemented Interfaces:
Builder<CloudEventsFormat>
- Direct Known Subclasses:
DeliveryCloudEventsFormatBuilder
CloudEventsFormatBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CloudEventsFormat cloudEventsFormat = CloudEventsFormat.builder()
.cloudEventsVersion("{cloudEventsVersion}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CloudEventsFormat with checking for non-null required valuesbuilds CloudEventsFormat without checking for non-null required valuescloudEventsVersion
(String cloudEventsVersion) set the value to the cloudEventsVersionvalue of cloudEventsVersion}static CloudEventsFormatBuilder
of()
factory method for an instance of CloudEventsFormatBuilderstatic CloudEventsFormatBuilder
of
(CloudEventsFormat template) create builder for CloudEventsFormat instance
-
Constructor Details
-
CloudEventsFormatBuilder
public CloudEventsFormatBuilder()
-
-
Method Details
-
cloudEventsVersion
set the value to the cloudEventsVersion- Parameters:
cloudEventsVersion
- value to be set- Returns:
- Builder
-
getCloudEventsVersion
value of cloudEventsVersion}- Returns:
- cloudEventsVersion
-
build
builds CloudEventsFormat with checking for non-null required values- Specified by:
build
in interfaceBuilder<CloudEventsFormat>
- Returns:
- CloudEventsFormat
-
buildUnchecked
builds CloudEventsFormat without checking for non-null required values- Returns:
- CloudEventsFormat
-
of
factory method for an instance of CloudEventsFormatBuilder- Returns:
- builder
-
of
create builder for CloudEventsFormat instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-