org.openstack4j.model.manila.builder.ShareTypeCreateBuilder Maven / Gradle / Ivy
package org.openstack4j.model.manila.builder;
import org.openstack4j.common.Buildable;
import org.openstack4j.model.manila.ExtraSpecs;
import org.openstack4j.model.manila.ShareTypeCreate;
/**
* Builds a {@link org.openstack4j.model.manila.ShareTypeCreate}.
*
* @author Daniel Gonzalez Nothnagel
*/
public interface ShareTypeCreateBuilder extends Buildable.Builder {
/**
* Adds an extra specification for the share type.
*
* @param key the key of the extra specification
* @param value the value of the extra specification
* @return ShareTypeCreateBuilder
*/
ShareTypeCreateBuilder addExtraSpec(String key, String value);
/**
* Set extra specifications for the share type.
*
* @param extraSpecs the extra specifications
* @return ShareTypeCreateBuilder
*/
ShareTypeCreateBuilder extraSpecs(ExtraSpecs extraSpecs);
/**
* Set whether a share type is publicly accessible. Default is true, or publicly accessible.
*
* @param osShareTypeAccessIsPublic whether the share type is public accessible
* @return ShareTypeCreateBuilder
*/
ShareTypeCreateBuilder osShareTypeAccessIsPublic(boolean osShareTypeAccessIsPublic);
/**
* Set the share type name.
*
* @param name the share type name
* @return ShareTypeCreateBuilder
*/
ShareTypeCreateBuilder name(String name);
}