Class PayloadNotIncludedBuilder
java.lang.Object
com.commercetools.api.models.subscription.PayloadNotIncludedBuilder
- All Implemented Interfaces:
Builder<PayloadNotIncluded>
PayloadNotIncludedBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PayloadNotIncluded payloadNotIncluded = PayloadNotIncluded.builder()
.reason("{reason}")
.payloadType("{payloadType}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PayloadNotIncluded with checking for non-null required valuesbuilds PayloadNotIncluded without checking for non-null required valuesValue of thetype
field in the original payload.Reason the payload is not included.static PayloadNotIncludedBuilder
of()
factory method for an instance of PayloadNotIncludedBuilderstatic PayloadNotIncludedBuilder
of
(PayloadNotIncluded template) create builder for PayloadNotIncluded instancepayloadType
(String payloadType) Value of thetype
field in the original payload.Reason the payload is not included.
-
Constructor Details
-
PayloadNotIncludedBuilder
public PayloadNotIncludedBuilder()
-
-
Method Details
-
reason
Reason the payload is not included. For example, the payload is too large, or its content is not supported by the Subscription destination.
- Parameters:
reason
- value to be set- Returns:
- Builder
-
payloadType
Value of the
type
field in the original payload.- Parameters:
payloadType
- value to be set- Returns:
- Builder
-
getReason
Reason the payload is not included. For example, the payload is too large, or its content is not supported by the Subscription destination.
- Returns:
- reason
-
getPayloadType
Value of the
type
field in the original payload.- Returns:
- payloadType
-
build
builds PayloadNotIncluded with checking for non-null required values- Specified by:
build
in interfaceBuilder<PayloadNotIncluded>
- Returns:
- PayloadNotIncluded
-
buildUnchecked
builds PayloadNotIncluded without checking for non-null required values- Returns:
- PayloadNotIncluded
-
of
factory method for an instance of PayloadNotIncludedBuilder- Returns:
- builder
-
of
create builder for PayloadNotIncluded instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-