Enum CreateSteeringPolicyDetails.Template
- java.lang.Object
- 
- java.lang.Enum<CreateSteeringPolicyDetails.Template>
- 
- com.oracle.bmc.dns.model.CreateSteeringPolicyDetails.Template
 
 
- 
- All Implemented Interfaces:
- BmcEnum,- Serializable,- Comparable<CreateSteeringPolicyDetails.Template>
 - Enclosing class:
- CreateSteeringPolicyDetails
 
 public static enum CreateSteeringPolicyDetails.Template extends Enum<CreateSteeringPolicyDetails.Template> implements BmcEnum A set of predefined rules based on the desired purpose of the steering policy.Each template utilizes Traffic Management’s rules in a different order to produce the desired results when answering DNS queries. **Example:** The FAILOVER template determines answers by filtering the policy's answers using the FILTER rule first, then the following rules in succession: HEALTH, PRIORITY, and LIMIT. This gives the domain dynamic failover capability. It is **strongly recommended** to use a template other than CUSTOM when creating a steering policy. All templates require the rule order to begin with an unconditional FILTER rule that keeps answers contingent upon answer.isDisabled != true, except for CUSTOM. A defined HEALTH rule must follow the FILTER rule if the policy references a healthCheckMonitorId. The last rule of a template must must be a LIMIT rule. For more information about templates and code examples, see [Traffic Management API Guide](https://docs.oracle.com/iaas/Content/TrafficManagement/Concepts/trafficmanagementapi.htm). *Template Types** FAILOVER - Uses health check information on your endpoints to determine which DNS answers to serve. If an endpoint fails a health check, the answer for that endpoint will be removed from the list of available answers until the endpoint is detected as healthy. * LOAD_BALANCE - Distributes web traffic to specified endpoints based on defined weights. * ROUTE_BY_GEO - Answers DNS queries based on the query's geographic location. For a list of geographic locations to route by, see [Traffic Management Geographic Locations](https://docs.oracle.com/iaas/Content/TrafficManagement/Reference/trafficmanagementgeo.htm). * ROUTE_BY_ASN - Answers DNS queries based on the query's originating ASN. * ROUTE_BY_IP - Answers DNS queries based on the query's IP address. * CUSTOM - Allows a customized configuration of rules. 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description CustomFailoverLoadBalanceRouteByAsnRouteByGeoRouteByIp
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateSteeringPolicyDetails.Templatecreate(String key)StringgetValue()static CreateSteeringPolicyDetails.TemplatevalueOf(String name)Returns the enum constant of this type with the specified name.static CreateSteeringPolicyDetails.Template[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
Failoverpublic static final CreateSteeringPolicyDetails.Template Failover 
 - 
LoadBalancepublic static final CreateSteeringPolicyDetails.Template LoadBalance 
 - 
RouteByGeopublic static final CreateSteeringPolicyDetails.Template RouteByGeo 
 - 
RouteByAsnpublic static final CreateSteeringPolicyDetails.Template RouteByAsn 
 - 
RouteByIppublic static final CreateSteeringPolicyDetails.Template RouteByIp 
 - 
Custompublic static final CreateSteeringPolicyDetails.Template Custom 
 
- 
 - 
Method Detail- 
valuespublic static CreateSteeringPolicyDetails.Template[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CreateSteeringPolicyDetails.Template c : CreateSteeringPolicyDetails.Template.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static CreateSteeringPolicyDetails.Template valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 - 
createpublic static CreateSteeringPolicyDetails.Template create(String key) 
 
- 
 
-