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

io.sphere.sdk.customers.commands.updateactions.SetCompanyName Maven / Gradle / Ivy

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

import io.sphere.sdk.commands.UpdateAction;
import io.sphere.sdk.customers.Customer;

import java.util.Optional;

/**
 * Sets a new company name for the customer
 *
 * {@include.example io.sphere.sdk.customers.commands.CustomerUpdateCommandTest#setCompanyName()}
 */
public class SetCompanyName extends UpdateAction {
    private final Optional companyName;

    private SetCompanyName(final Optional companyName) {
        super("setCompanyName");
        this.companyName = companyName;
    }

    public static SetCompanyName of(final Optional companyName) {
        return new SetCompanyName(companyName);
    }

    public static SetCompanyName of(final String companyName) {
        return of(Optional.of(companyName));
    }

    public Optional getCompanyName() {
        return companyName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy