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

io.sphere.sdk.producttypes.commands.updateactions.ChangeAttributeDefinitionLabel Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.producttypes.commands.updateactions;

import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.models.LocalizedString;
import io.sphere.sdk.producttypes.ProductType;

/**
 * Changes the attribute definition label.
 *
 * {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.producttypes.commands.ProductTypeUpdateCommandTest#changeLabel()}
 */
public class ChangeAttributeDefinitionLabel extends UpdateActionImpl {
    private final String attributeName;
    private final LocalizedString label;

    private ChangeAttributeDefinitionLabel(final String attributeName, final LocalizedString label) {
        super("changeLabel");
        this.attributeName = attributeName;
        this.label = label;
    }

    public static ChangeAttributeDefinitionLabel of(final String attributeName, final LocalizedString label) {
        return new ChangeAttributeDefinitionLabel(attributeName, label);
    }

    public String getAttributeName() {
        return attributeName;
    }

    public LocalizedString getLabel() {
        return label;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy