@Generated(value="software.amazon.awssdk:codegen") public final class OriginGroup extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OriginGroup.Builder,OriginGroup>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
OriginGroup.Builder |
Modifier and Type | Method and Description |
---|---|
static OriginGroup.Builder |
builder() |
boolean |
equals(Object obj) |
OriginGroupFailoverCriteria |
failoverCriteria()
A complex type that contains information about the failover criteria for an origin group.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
id()
The origin group's ID.
|
OriginGroupMembers |
members()
A complex type that contains information about the origins in an origin group.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends OriginGroup.Builder> |
serializableBuilderClass() |
OriginGroup.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String id()
The origin group's ID.
public OriginGroupFailoverCriteria failoverCriteria()
A complex type that contains information about the failover criteria for an origin group.
public OriginGroupMembers members()
A complex type that contains information about the origins in an origin group.
public OriginGroup.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<OriginGroup.Builder,OriginGroup>
public static OriginGroup.Builder builder()
public static Class<? extends OriginGroup.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.