io.sphere.sdk.customers.commands.updateactions.AddAddress Maven / Gradle / Ivy
package io.sphere.sdk.customers.commands.updateactions;
import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.customers.Customer;
import io.sphere.sdk.models.Address;
/**
* Adds an address to a customer.
*
* {@doc.gen intro}
*
* {@include.example io.sphere.sdk.customers.commands.CustomerUpdateCommandTest#addAddress()}
*
* @see Customer
*/
public class AddAddress extends UpdateActionImpl {
private final Address address;
private AddAddress(final Address address) {
super("addAddress");
this.address = address;
}
public static AddAddress of(final Address address) {
return new AddAddress(address);
}
public Address getAddress() {
return address;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy