Package com.datadog.api.client.v2.model
Class EscalationPolicyCreateRequestDataAttributesStepsItems
java.lang.Object
com.datadog.api.client.v2.model.EscalationPolicyCreateRequestDataAttributesStepsItems
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class EscalationPolicyCreateRequestDataAttributesStepsItems
extends Object
Defines a single escalation step within an escalation policy creation request. Contains
assignment strategy, escalation timeout, and a list of targets.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionaddTargetsItem(EscalationPolicyStepTarget targetsItem) assignment(EscalationPolicyStepAttributesAssignment assignment) booleanReturn true if this EscalationPolicyCreateRequestDataAttributesStepsItems object is equal to o.escalateAfterSeconds(Long escalateAfterSeconds) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Specifies how this escalation step will assign targets (exampledefaultorround-robin).Defines how many seconds to wait before escalating to the next step.Specifies the collection of escalation targets for this step.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetEscalateAfterSeconds(Long escalateAfterSeconds) voidsetTargets(List<EscalationPolicyStepTarget> targets) targets(List<EscalationPolicyStepTarget> targets) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ASSIGNMENT
- See Also:
-
JSON_PROPERTY_ESCALATE_AFTER_SECONDS
- See Also:
-
JSON_PROPERTY_TARGETS
- See Also:
-
-
Constructor Details
-
EscalationPolicyCreateRequestDataAttributesStepsItems
public EscalationPolicyCreateRequestDataAttributesStepsItems() -
EscalationPolicyCreateRequestDataAttributesStepsItems
public EscalationPolicyCreateRequestDataAttributesStepsItems(List<EscalationPolicyStepTarget> targets)
-
-
Method Details
-
assignment
public EscalationPolicyCreateRequestDataAttributesStepsItems assignment(EscalationPolicyStepAttributesAssignment assignment) -
getAssignment
Specifies how this escalation step will assign targets (exampledefaultorround-robin).- Returns:
- assignment
-
setAssignment
-
escalateAfterSeconds
public EscalationPolicyCreateRequestDataAttributesStepsItems escalateAfterSeconds(Long escalateAfterSeconds) -
getEscalateAfterSeconds
Defines how many seconds to wait before escalating to the next step. minimum: 60 maximum: 36000- Returns:
- escalateAfterSeconds
-
setEscalateAfterSeconds
-
targets
public EscalationPolicyCreateRequestDataAttributesStepsItems targets(List<EscalationPolicyStepTarget> targets) -
addTargetsItem
public EscalationPolicyCreateRequestDataAttributesStepsItems addTargetsItem(EscalationPolicyStepTarget targetsItem) -
getTargets
Specifies the collection of escalation targets for this step.- Returns:
- targets
-
setTargets
-
putAdditionalProperty
public EscalationPolicyCreateRequestDataAttributesStepsItems putAdditionalProperty(String key, Object value) 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:
- EscalationPolicyCreateRequestDataAttributesStepsItems
-
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 EscalationPolicyCreateRequestDataAttributesStepsItems object is equal to o. -
hashCode
public int hashCode() -
toString
-