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-M26
Show newest version
package io.sphere.sdk.customers.commands.updateactions;

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

import javax.annotation.Nullable;

/**
 * Sets a new company name for the customer.
 *
 *  {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.customers.commands.CustomerUpdateCommandTest#setCompanyName()}
 *
 * @see Customer
 */
public class SetCompanyName extends UpdateActionImpl {
    @Nullable
    private final String companyName;

    private SetCompanyName(@Nullable final String companyName) {
        super("setCompanyName");
        this.companyName = companyName;
    }

    public static SetCompanyName of(@Nullable final String companyName) {
        return new SetCompanyName(companyName);
    }

    @Nullable
    public String getCompanyName() {
        return companyName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy