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

io.sphere.sdk.products.commands.updateactions.SetMetaDescription Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
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 description.
 *
 * {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.products.commands.ProductUpdateCommandTest#setMetaDescription()}
 *  

Create update actions to set the SEO attributes title, description and keywords altogether:

* {@include.example io.sphere.sdk.products.commands.ProductUpdateCommandTest#setMetaAttributes()} */ public class SetMetaDescription extends UpdateActionImpl { @Nullable private final LocalizedString metaDescription; private SetMetaDescription(final LocalizedString metaDescription) { super("setMetaDescription"); this.metaDescription = metaDescription; } public static SetMetaDescription of(@Nullable final LocalizedString metaDescription) { return new SetMetaDescription(metaDescription); } @Nullable public LocalizedString getMetaDescription() { return metaDescription; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy