All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.commercetools.history.models.change.ChangeInputHintChangeBuilder Maven / Gradle / Ivy

There is a newer version: 17.15.1
Show newest version

package com.commercetools.history.models.change;

import java.util.*;

import io.vrap.rmf.base.client.Builder;
import io.vrap.rmf.base.client.utils.Generated;

/**
 * ChangeInputHintChangeBuilder
 * 
* Example to create an instance using the builder pattern *
*

 *     ChangeInputHintChange changeInputHintChange = ChangeInputHintChange.builder()
 *             .change("{change}")
 *             .previousValue(TextInputHint.SINGLE_LINE)
 *             .nextValue(TextInputHint.SINGLE_LINE)
 *             .fieldName("{fieldName}")
 *             .attributeName("{attributeName}")
 *             .build()
 * 
*
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ChangeInputHintChangeBuilder implements Builder { private String change; private com.commercetools.history.models.common.TextInputHint previousValue; private com.commercetools.history.models.common.TextInputHint nextValue; private String fieldName; private String attributeName; /** * set the value to the change * @param change value to be set * @return Builder */ public ChangeInputHintChangeBuilder change(final String change) { this.change = change; return this; } /** *

Value before the change.

* @param previousValue value to be set * @return Builder */ public ChangeInputHintChangeBuilder previousValue( final com.commercetools.history.models.common.TextInputHint previousValue) { this.previousValue = previousValue; return this; } /** *

Value after the change.

* @param nextValue value to be set * @return Builder */ public ChangeInputHintChangeBuilder nextValue( final com.commercetools.history.models.common.TextInputHint nextValue) { this.nextValue = nextValue; return this; } /** *

Name of the updated FieldDefinition; only present on changes to Types.

* @param fieldName value to be set * @return Builder */ public ChangeInputHintChangeBuilder fieldName(final String fieldName) { this.fieldName = fieldName; return this; } /** *

Name of the updated AttributeDefinition; only present on changes to Product Types.

* @param attributeName value to be set * @return Builder */ public ChangeInputHintChangeBuilder attributeName(final String attributeName) { this.attributeName = attributeName; return this; } /** * value of change} * @return change */ public String getChange() { return this.change; } /** *

Value before the change.

* @return previousValue */ public com.commercetools.history.models.common.TextInputHint getPreviousValue() { return this.previousValue; } /** *

Value after the change.

* @return nextValue */ public com.commercetools.history.models.common.TextInputHint getNextValue() { return this.nextValue; } /** *

Name of the updated FieldDefinition; only present on changes to Types.

* @return fieldName */ public String getFieldName() { return this.fieldName; } /** *

Name of the updated AttributeDefinition; only present on changes to Product Types.

* @return attributeName */ public String getAttributeName() { return this.attributeName; } /** * builds ChangeInputHintChange with checking for non-null required values * @return ChangeInputHintChange */ public ChangeInputHintChange build() { Objects.requireNonNull(change, ChangeInputHintChange.class + ": change is missing"); Objects.requireNonNull(previousValue, ChangeInputHintChange.class + ": previousValue is missing"); Objects.requireNonNull(nextValue, ChangeInputHintChange.class + ": nextValue is missing"); Objects.requireNonNull(fieldName, ChangeInputHintChange.class + ": fieldName is missing"); Objects.requireNonNull(attributeName, ChangeInputHintChange.class + ": attributeName is missing"); return new ChangeInputHintChangeImpl(change, previousValue, nextValue, fieldName, attributeName); } /** * builds ChangeInputHintChange without checking for non-null required values * @return ChangeInputHintChange */ public ChangeInputHintChange buildUnchecked() { return new ChangeInputHintChangeImpl(change, previousValue, nextValue, fieldName, attributeName); } /** * factory method for an instance of ChangeInputHintChangeBuilder * @return builder */ public static ChangeInputHintChangeBuilder of() { return new ChangeInputHintChangeBuilder(); } /** * create builder for ChangeInputHintChange instance * @param template instance with prefilled values for the builder * @return builder */ public static ChangeInputHintChangeBuilder of(final ChangeInputHintChange template) { ChangeInputHintChangeBuilder builder = new ChangeInputHintChangeBuilder(); builder.change = template.getChange(); builder.previousValue = template.getPreviousValue(); builder.nextValue = template.getNextValue(); builder.fieldName = template.getFieldName(); builder.attributeName = template.getAttributeName(); return builder; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy