com.cloudera.api.model
Class ApiBatchResponse

java.lang.Object
  extended by com.cloudera.api.model.ApiBatchResponse
All Implemented Interfaces:
Iterable<ApiBatchResponseElement>

public class ApiBatchResponse
extends Object

A batch response, comprised of one or more response elements.


Field Summary
static String ITEMS_ATTR
           
protected  List<T> values
           
 
Constructor Summary
ApiBatchResponse()
           
ApiBatchResponse(List<ApiBatchResponseElement> elements)
           
 
Method Summary
 boolean add(T item)
           
 boolean equals(Object o)
           
 T get(int index)
           
 List<ApiBatchResponseElement> getElements()
           
 Boolean getSuccess()
          Read-only.
 int hashCode()
           
 Iterator<T> iterator()
           
 void setElements(List<ApiBatchResponseElement> elements)
           
 void setSuccess(Boolean success)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ITEMS_ATTR

public static final String ITEMS_ATTR
See Also:
Constant Field Values

values

protected List<T> values
Constructor Detail

ApiBatchResponse

public ApiBatchResponse()

ApiBatchResponse

public ApiBatchResponse(List<ApiBatchResponseElement> elements)
Method Detail

getElements

public List<ApiBatchResponseElement> getElements()

setElements

public void setElements(List<ApiBatchResponseElement> elements)

getSuccess

public Boolean getSuccess()
Read-only. True if every response element's ApiBatchResponseElement.getStatusCode() is in the range [200, 300), false otherwise.


setSuccess

public void setSuccess(Boolean success)

add

public boolean add(T item)

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>

size

public int size()

get

public T get(int index)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.