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

org.openstack4j.model.compute.ext.MigrationsFilter Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package org.openstack4j.model.compute.ext;

import org.openstack4j.model.common.BaseFilter;
import org.openstack4j.model.compute.ext.Migration.Status;

/**
 * Filter options used for Migration results
 * 
 * @author Jeremy Unruh
 */
public class MigrationsFilter extends BaseFilter {

    private MigrationsFilter() { 
    }
    
    public static MigrationsFilter create() {
        return new MigrationsFilter();
    }
    
    /**
     * Filters the response by host name 
     * 
     * @param host the host name
     * @return MigrationsFilter
     */
    public MigrationsFilter host(String host) {
        filter("host", host);
        return this;
    }
    
    /**
     * Filters the response by status.
     * 
     * @param status the status to filter by
     * @return MigrationsFilter
     */
    public MigrationsFilter status(Status status) {
        filter("status", status.name());
        return this;
    }
    
    /**
     * Filters the response by cell name 
     * 
     * @param cellName the cell name
     * @return MigrationsFilter
     */
    public MigrationsFilter cellName(String cellName) {
        filter("cell_name", cellName);
        return this;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy