@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StatusCodes extends Object implements Serializable, Cloneable
A complex data type for the status codes that you specify that, when returned by a primary origin, trigger CloudFront to failover to a second origin.
| Constructor and Description | 
|---|
StatusCodes()  | 
| Modifier and Type | Method and Description | 
|---|---|
StatusCodes | 
clone()  | 
boolean | 
equals(Object obj)  | 
List<Integer> | 
getItems()
 The items (status codes) for an origin group. 
 | 
Integer | 
getQuantity()
 The number of status codes. 
 | 
int | 
hashCode()  | 
void | 
setItems(Collection<Integer> items)
 The items (status codes) for an origin group. 
 | 
void | 
setQuantity(Integer quantity)
 The number of status codes. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
StatusCodes | 
withItems(Collection<Integer> items)
 The items (status codes) for an origin group. 
 | 
StatusCodes | 
withItems(Integer... items)
 The items (status codes) for an origin group. 
 | 
StatusCodes | 
withQuantity(Integer quantity)
 The number of status codes. 
 | 
public void setQuantity(Integer quantity)
The number of status codes.
quantity - The number of status codes.public Integer getQuantity()
The number of status codes.
public StatusCodes withQuantity(Integer quantity)
The number of status codes.
quantity - The number of status codes.public List<Integer> getItems()
The items (status codes) for an origin group.
public void setItems(Collection<Integer> items)
The items (status codes) for an origin group.
items - The items (status codes) for an origin group.public StatusCodes withItems(Integer... items)
The items (status codes) for an origin group.
 NOTE: This method appends the values to the existing list (if any). Use
 setItems(java.util.Collection) or withItems(java.util.Collection) if you want to override the
 existing values.
 
items - The items (status codes) for an origin group.public StatusCodes withItems(Collection<Integer> items)
The items (status codes) for an origin group.
items - The items (status codes) for an origin group.public String toString()
toString in class ObjectObject.toString()public StatusCodes clone()
Copyright © 2021. All rights reserved.