Class BadGatewayErrorBuilder
java.lang.Object
com.commercetools.api.models.error.BadGatewayErrorBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<BadGatewayError>
public class BadGatewayErrorBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<BadGatewayError>
BadGatewayErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BadGatewayError badGatewayError = BadGatewayError.builder()
.message("{message}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds BadGatewayError with checking for non-null required valuesbuilds BadGatewayError without checking for non-null required valuesPlain text description of the error.Error-specific additional fields.Plain text description of the error.static BadGatewayErrorBuilder
of()
factory method for an instance of BadGatewayErrorBuilderstatic BadGatewayErrorBuilder
of
(BadGatewayError template) create builder for BadGatewayError instanceError-specific additional fields.
-
Constructor Details
-
BadGatewayErrorBuilder
public BadGatewayErrorBuilder()
-
-
Method Details
-
message
Plain text description of the error.
- Parameters:
message
- value to be set- Returns:
- Builder
-
values
Error-specific additional fields.
- Parameters:
values
- properties to be set- Returns:
- Builder
-
addValue
Error-specific additional fields.
- Parameters:
key
- property namevalue
- property value- Returns:
- Builder
-
getMessage
Plain text description of the error.
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
build
builds BadGatewayError with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<BadGatewayError>
- Returns:
- BadGatewayError
-
buildUnchecked
builds BadGatewayError without checking for non-null required values- Returns:
- BadGatewayError
-
of
factory method for an instance of BadGatewayErrorBuilder- Returns:
- builder
-
of
create builder for BadGatewayError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-