Package com.datadog.api.client.v2.model
Class EscalationPolicyCreateRequestDataAttributes
java.lang.Object
com.datadog.api.client.v2.model.EscalationPolicyCreateRequestDataAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class EscalationPolicyCreateRequestDataAttributes
extends Object
Defines the attributes for creating an escalation policy, including its description, name,
resolution behavior, retries, and steps.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEscalationPolicyCreateRequestDataAttributes(String name, List<EscalationPolicyCreateRequestDataAttributesStepsItems> steps) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this EscalationPolicyCreateRequestDataAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getName()Specifies the name for the new escalation policy.Indicates whether the page is automatically resolved when the policy ends.Specifies how many times the escalation sequence is retried if there is no response.getSteps()A list of escalation steps, each defining assignment, escalation timeout, and targets for the new policy.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.resolvePageOnPolicyEnd(Boolean resolvePageOnPolicyEnd) voidvoidsetResolvePageOnPolicyEnd(Boolean resolvePageOnPolicyEnd) voidsetRetries(Long retries) voidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_RESOLVE_PAGE_ON_POLICY_END
- See Also:
-
JSON_PROPERTY_RETRIES
- See Also:
-
JSON_PROPERTY_STEPS
- See Also:
-
-
Constructor Details
-
EscalationPolicyCreateRequestDataAttributes
public EscalationPolicyCreateRequestDataAttributes() -
EscalationPolicyCreateRequestDataAttributes
public EscalationPolicyCreateRequestDataAttributes(String name, List<EscalationPolicyCreateRequestDataAttributesStepsItems> steps)
-
-
Method Details
-
name
-
getName
Specifies the name for the new escalation policy.- Returns:
- name
-
setName
-
resolvePageOnPolicyEnd
public EscalationPolicyCreateRequestDataAttributes resolvePageOnPolicyEnd(Boolean resolvePageOnPolicyEnd) -
getResolvePageOnPolicyEnd
Indicates whether the page is automatically resolved when the policy ends.- Returns:
- resolvePageOnPolicyEnd
-
setResolvePageOnPolicyEnd
-
retries
-
getRetries
Specifies how many times the escalation sequence is retried if there is no response. minimum: 0 maximum: 10- Returns:
- retries
-
setRetries
-
steps
-
addStepsItem
public EscalationPolicyCreateRequestDataAttributes addStepsItem(EscalationPolicyCreateRequestDataAttributesStepsItems stepsItem) -
getSteps
A list of escalation steps, each defining assignment, escalation timeout, and targets for the new policy.- Returns:
- steps
-
setSteps
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- EscalationPolicyCreateRequestDataAttributes
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this EscalationPolicyCreateRequestDataAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-