@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OriginGroup extends Object implements Serializable, Cloneable
An origin group includes two origins (a primary origin and a second origin to failover to) and a failover criteria that you specify. You create an origin group to support origin failover in CloudFront. When you create or update a distribution, you can specifiy the origin group instead of a single origin, and CloudFront will failover from the primary origin to the second origin under the failover conditions that you've chosen.
| Constructor and Description | 
|---|
| OriginGroup() | 
| Modifier and Type | Method and Description | 
|---|---|
| OriginGroup | clone() | 
| boolean | equals(Object obj) | 
| OriginGroupFailoverCriteria | getFailoverCriteria()
 A complex type that contains information about the failover criteria for an origin group. | 
| String | getId()
 The origin group's ID. | 
| OriginGroupMembers | getMembers()
 A complex type that contains information about the origins in an origin group. | 
| int | hashCode() | 
| void | setFailoverCriteria(OriginGroupFailoverCriteria failoverCriteria)
 A complex type that contains information about the failover criteria for an origin group. | 
| void | setId(String id)
 The origin group's ID. | 
| void | setMembers(OriginGroupMembers members)
 A complex type that contains information about the origins in an origin group. | 
| String | toString()Returns a string representation of this object. | 
| OriginGroup | withFailoverCriteria(OriginGroupFailoverCriteria failoverCriteria)
 A complex type that contains information about the failover criteria for an origin group. | 
| OriginGroup | withId(String id)
 The origin group's ID. | 
| OriginGroup | withMembers(OriginGroupMembers members)
 A complex type that contains information about the origins in an origin group. | 
public void setId(String id)
The origin group's ID.
id - The origin group's ID.public String getId()
The origin group's ID.
public OriginGroup withId(String id)
The origin group's ID.
id - The origin group's ID.public void setFailoverCriteria(OriginGroupFailoverCriteria failoverCriteria)
A complex type that contains information about the failover criteria for an origin group.
failoverCriteria - A complex type that contains information about the failover criteria for an origin group.public OriginGroupFailoverCriteria getFailoverCriteria()
A complex type that contains information about the failover criteria for an origin group.
public OriginGroup withFailoverCriteria(OriginGroupFailoverCriteria failoverCriteria)
A complex type that contains information about the failover criteria for an origin group.
failoverCriteria - A complex type that contains information about the failover criteria for an origin group.public void setMembers(OriginGroupMembers members)
A complex type that contains information about the origins in an origin group.
members - A complex type that contains information about the origins in an origin group.public OriginGroupMembers getMembers()
A complex type that contains information about the origins in an origin group.
public OriginGroup withMembers(OriginGroupMembers members)
A complex type that contains information about the origins in an origin group.
members - A complex type that contains information about the origins in an origin group.public String toString()
toString in class ObjectObject.toString()public OriginGroup clone()
Copyright © 2021. All rights reserved.