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

org.openstack4j.model.common.IdEntity Maven / Gradle / Ivy

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

import org.openstack4j.model.ModelEntity;

/**
 * A simple entity which supports encapsulating an identifier
 * 
 * @author Jeremy Unruh
 */
public interface IdEntity extends ModelEntity {

    /**
     * @return the identifier for this resource
     */
    String getId();
    
    /**
     * Sets the identifier for this resource.  Note: creating a new resource should not have the idenfier set since OpenStack will 
     * assign one on the create call
     * 
     * @param id the identifier
     */
    void setId(String id);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy