Class AttributeNameDoesNotExistErrorBuilder
java.lang.Object
com.commercetools.api.models.error.AttributeNameDoesNotExistErrorBuilder
- All Implemented Interfaces:
Builder<AttributeNameDoesNotExistError>
public class AttributeNameDoesNotExistErrorBuilder
extends Object
implements Builder<AttributeNameDoesNotExistError>
AttributeNameDoesNotExistErrorBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AttributeNameDoesNotExistError attributeNameDoesNotExistError = AttributeNameDoesNotExistError.builder()
.message("{message}")
.invalidAttributeName("{invalidAttributeName}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionError-specific additional fields.build()
builds AttributeNameDoesNotExistError with checking for non-null required valuesbuilds AttributeNameDoesNotExistError without checking for non-null required valuesNon-existent Attribute name."Attribute definition for $attributeName does not exist on type $typeName."
Error-specific additional fields.invalidAttributeName
(String invalidAttributeName) Non-existent Attribute name."Attribute definition for $attributeName does not exist on type $typeName."
of()
factory method for an instance of AttributeNameDoesNotExistErrorBuilderof
(AttributeNameDoesNotExistError template) create builder for AttributeNameDoesNotExistError instanceError-specific additional fields.
-
Constructor Details
-
AttributeNameDoesNotExistErrorBuilder
public AttributeNameDoesNotExistErrorBuilder()
-
-
Method Details
-
message
"Attribute definition for $attributeName does not exist on type $typeName."
- 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
-
invalidAttributeName
Non-existent Attribute name.
- Parameters:
invalidAttributeName
- value to be set- Returns:
- Builder
-
getMessage
"Attribute definition for $attributeName does not exist on type $typeName."
- Returns:
- message
-
getValues
Error-specific additional fields.
- Returns:
- pattern properties
-
getInvalidAttributeName
Non-existent Attribute name.
- Returns:
- invalidAttributeName
-
build
builds AttributeNameDoesNotExistError with checking for non-null required values- Specified by:
build
in interfaceBuilder<AttributeNameDoesNotExistError>
- Returns:
- AttributeNameDoesNotExistError
-
buildUnchecked
builds AttributeNameDoesNotExistError without checking for non-null required values- Returns:
- AttributeNameDoesNotExistError
-
of
factory method for an instance of AttributeNameDoesNotExistErrorBuilder- Returns:
- builder
-
of
create builder for AttributeNameDoesNotExistError instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-