io.sphere.sdk.products.commands.updateactions.SetMetaTitle Maven / Gradle / Ivy
package io.sphere.sdk.products.commands.updateactions;
import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.models.LocalizedString;
import io.sphere.sdk.products.Product;
import javax.annotation.Nullable;
/**
* Sets the SEO attribute title.
*
* {@doc.gen intro}
*
* {@include.example io.sphere.sdk.products.commands.ProductUpdateCommandTest#setMetaTitle()}
*
* Create update actions to set the SEO attributes title, description and keywords altogether:
* {@include.example io.sphere.sdk.products.commands.ProductUpdateCommandTest#setMetaAttributes()}
*/
public class SetMetaTitle extends UpdateActionImpl {
@Nullable
private final LocalizedString metaTitle;
private SetMetaTitle(@Nullable final LocalizedString metaTitle) {
super("setMetaTitle");
this.metaTitle = metaTitle;
}
public static SetMetaTitle of(@Nullable final LocalizedString metaTitle) {
return new SetMetaTitle(metaTitle);
}
@Nullable
public LocalizedString getMetaTitle() {
return metaTitle;
}
}