Class SteeringPolicySummary
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.dns.model.SteeringPolicySummary
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20180115") public final class SteeringPolicySummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A DNS steering policy.*Warning:** Oracle recommends that you avoid using any confidential information when you supply string values using the API.
Note: Objects should always be created or deserialized using theSteeringPolicySummary.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theSteeringPolicySummary.Builder
, which maintain a set of all explicitly set fields calledSteeringPolicySummary.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SteeringPolicySummary.Builder
static class
SteeringPolicySummary.LifecycleState
The current state of the resource.static class
SteeringPolicySummary.Template
A set of predefined rules based on the desired purpose of the steering policy.
-
Constructor Summary
Constructors Constructor Description SteeringPolicySummary(String compartmentId, String displayName, Integer ttl, String healthCheckMonitorId, SteeringPolicySummary.Template template, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, String self, String id, Date timeCreated, SteeringPolicySummary.LifecycleState lifecycleState)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SteeringPolicySummary.Builder
builder()
Create a new builder.boolean
equals(Object o)
String
getCompartmentId()
The OCID of the compartment containing the steering policy.Map<String,Map<String,Object>>
getDefinedTags()
Defined tags for this resource.String
getDisplayName()
A user-friendly name for the steering policy.Map<String,String>
getFreeformTags()
Free-form tags for this resource.String
getHealthCheckMonitorId()
The OCID of the health check monitor providing health data about the answers of the steering policy.String
getId()
The OCID of the resource.SteeringPolicySummary.LifecycleState
getLifecycleState()
The current state of the resource.String
getSelf()
The canonical absolute URL of the resource.SteeringPolicySummary.Template
getTemplate()
A set of predefined rules based on the desired purpose of the steering policy.Date
getTimeCreated()
The date and time the resource was created, expressed in RFC 3339 timestamp format.Integer
getTtl()
The Time To Live (TTL) for responses from the steering policy, in seconds.int
hashCode()
SteeringPolicySummary.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
SteeringPolicySummary
@Deprecated @ConstructorProperties({"compartmentId","displayName","ttl","healthCheckMonitorId","template","freeformTags","definedTags","self","id","timeCreated","lifecycleState"}) public SteeringPolicySummary(String compartmentId, String displayName, Integer ttl, String healthCheckMonitorId, SteeringPolicySummary.Template template, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, String self, String id, Date timeCreated, SteeringPolicySummary.LifecycleState lifecycleState)
Deprecated.
-
-
Method Detail
-
builder
public static SteeringPolicySummary.Builder builder()
Create a new builder.
-
toBuilder
public SteeringPolicySummary.Builder toBuilder()
-
getCompartmentId
public String getCompartmentId()
The OCID of the compartment containing the steering policy.- Returns:
- the value
-
getDisplayName
public String getDisplayName()
A user-friendly name for the steering policy.Does not have to be unique and can be changed. Avoid entering confidential information.
- Returns:
- the value
-
getTtl
public Integer getTtl()
The Time To Live (TTL) for responses from the steering policy, in seconds.If not specified during creation, a value of 30 seconds will be used.
- Returns:
- the value
-
getHealthCheckMonitorId
public String getHealthCheckMonitorId()
The OCID of the health check monitor providing health data about the answers of the steering policy.A steering policy answer with rdata matching a monitored endpoint will use the health data of that endpoint. A steering policy answer with rdata not matching any monitored endpoint will be assumed healthy.
**Note:** To use the Health Check monitoring feature in a steering policy, a monitor must be created using the Health Checks service first. For more information on how to create a monitor, please see [Managing Health Checks](https://docs.oracle.com/iaas/Content/HealthChecks/Tasks/managinghealthchecks.htm).
- Returns:
- the value
-
getTemplate
public SteeringPolicySummary.Template getTemplate()
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.
- Returns:
- the value
-
getFreeformTags
public Map<String,String> getFreeformTags()
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
**Example:** {"Department": "Finance"}
- Returns:
- the value
-
getDefinedTags
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
**Example:** {"Operations": {"CostCenter": "42"}}
- Returns:
- the value
-
getSelf
public String getSelf()
The canonical absolute URL of the resource.- Returns:
- the value
-
getId
public String getId()
The OCID of the resource.- Returns:
- the value
-
getTimeCreated
public Date getTimeCreated()
The date and time the resource was created, expressed in RFC 3339 timestamp format.*Example:** 2016-07-22T17:23:59:60Z
- Returns:
- the value
-
getLifecycleState
public SteeringPolicySummary.LifecycleState getLifecycleState()
The current state of the resource.- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-