Package org.openstack4j.model.common
Class Identifier
- java.lang.Object
-
- org.openstack4j.model.common.Identifier
-
public class Identifier extends Object
Represents an identifier which can either be an ID or Name- Author:
- Jeremy Unruh
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIdentifier.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IdentifierbyId(String id)Creates a new identifier which is an ID based valuestatic IdentifierbyName(String name)Creates an identifier which is NAME based identificationStringgetId()Identifier.TypegetType()booleanisTypeID()
-
-
-
Method Detail
-
byId
public static Identifier byId(String id)
Creates a new identifier which is an ID based value- Parameters:
id- the ID value- Returns:
- identifier object
-
byName
public static Identifier byName(String name)
Creates an identifier which is NAME based identification- Parameters:
name- the name value- Returns:
- the identifier
-
getType
public Identifier.Type getType()
-
getId
public String getId()
-
isTypeID
public boolean isTypeID()
-
-