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

org.openstack4j.model.common.builder.ResourceBuilder Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package org.openstack4j.model.common.builder;

import org.openstack4j.model.common.Resource;
import org.openstack4j.model.identity.Tenant;

/**
 * Abstract Resource Builder
 *
 * @param  the model type
 * @param  the builder type
 */
public abstract class ResourceBuilder> extends BasicResourceBuilder {

	/**
	 * Set the Tenant id.
	 *
	 * @param tenantId the tenant id
	 * @return the builder
	 */
	public T tenantId(String tenantId) {
		reference().setTenantId(tenantId);
		return self();
	}

	/**
	 * Sets the Tenant.
	 *
	 * @param tenant the tenant
	 * @return the builder
	 */
	public T tenant(Tenant tenant) {
		reference().setTenantId(tenant.getId());
		return self();
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy