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

io.sphere.sdk.products.commands.updateactions.SetMetaTitle 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 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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy