io.sphere.sdk.products.commands.updateactions.SetMetaKeywords 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 keywords.
*
* {@doc.gen intro}
*
* {@include.example io.sphere.sdk.products.commands.ProductUpdateCommandTest#setMetaKeywords()}
* Create update actions to set the SEO attributes title, description and keywords altogether:
* {@include.example io.sphere.sdk.products.commands.ProductUpdateCommandTest#setMetaAttributes()}
*/
public class SetMetaKeywords extends UpdateActionImpl {
@Nullable
private final LocalizedString metaKeywords;
private SetMetaKeywords(@Nullable final LocalizedString metaKeywords) {
super("setMetaKeywords");
this.metaKeywords = metaKeywords;
}
public static SetMetaKeywords of(@Nullable final LocalizedString metaKeywords) {
return new SetMetaKeywords(metaKeywords);
}
@Nullable
public LocalizedString getMetaKeywords() {
return metaKeywords;
}
}