public class InstanceTypeNICs extends CollectionDecorator<NIC,Nics,InstanceTypeNIC>
InstanceTypeNICs providing relation and functional services
to Nics
.
Constructor and Description |
---|
InstanceTypeNICs(HttpProxyBroker proxy,
InstanceType parent) |
Modifier and Type | Method and Description |
---|---|
InstanceTypeNIC |
add(NIC nic)
Adds NIC object.
|
InstanceTypeNIC |
get(UUID id)
Fetches InstanceTypeNIC object by id.
|
InstanceTypeNIC |
getById(String id)
Fetches InstanceTypeNIC object by id.
|
List<InstanceTypeNIC> |
list()
Lists InstanceTypeNIC objects.
|
List<InstanceTypeNIC> |
list(Integer max)
Lists InstanceTypeNIC objects.
|
get
public InstanceTypeNICs(HttpProxyBroker proxy, InstanceType parent)
proxy
- HttpProxyBrokerparent
- InstanceTypepublic List<InstanceTypeNIC> list() throws org.apache.http.client.ClientProtocolException, ServerException, IOException
list
in class CollectionDecorator<NIC,Nics,InstanceTypeNIC>
InstanceTypeNIC
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public InstanceTypeNIC get(UUID id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
get
in class CollectionDecorator<NIC,Nics,InstanceTypeNIC>
id
- entity idInstanceTypeNIC
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public InstanceTypeNIC getById(String id) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
getById
in class CollectionDecorator<NIC,Nics,InstanceTypeNIC>
id
- entity idInstanceTypeNIC
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public InstanceTypeNIC add(NIC nic) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
nic
- NIC
InstanceTypeNIC
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.public List<InstanceTypeNIC> list(Integer max) throws org.apache.http.client.ClientProtocolException, ServerException, IOException
max
- [max results]
InstanceTypeNIC
org.apache.http.client.ClientProtocolException
- Signals that HTTP/S protocol error has occurred.ServerException
- Signals that an oVirt api error has occurred.IOException
- Signals that an I/O exception of some sort has occurred.Copyright ? 2010 Red Hat, Inc - released under the Apache License Version 2.0