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

io.sphere.sdk.types.commands.updateactions.AddFieldDefinition Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.types.FieldDefinition;
import io.sphere.sdk.types.Type;

/**
    Adds another field definition.

 {@doc.gen intro}

 {@include.example io.sphere.sdk.types.commands.TypeUpdateCommandTest#addFieldDefinition()}
 */
public class AddFieldDefinition extends UpdateActionImpl {
    private final FieldDefinition fieldDefinition;

    public static AddFieldDefinition of(final FieldDefinition fieldDefinition) {
        return new AddFieldDefinition(fieldDefinition);
    }

    private AddFieldDefinition(final FieldDefinition fieldDefinition) {
        super("addFieldDefinition");
        this.fieldDefinition = fieldDefinition;
    }

    public FieldDefinition getFieldDefinition() {
        return fieldDefinition;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy