Package com.datadog.api.client.v2.model
Class EscalationPolicyUpdateRequestDataAttributesStepsItems
java.lang.Object
com.datadog.api.client.v2.model.EscalationPolicyUpdateRequestDataAttributesStepsItems
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class EscalationPolicyUpdateRequestDataAttributesStepsItems
extends Object
Defines a single escalation step within an escalation policy update request. Contains assignment
strategy, escalation timeout, an optional step ID, 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 EscalationPolicyUpdateRequestDataAttributesStepsItems 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.getId()Specifies the unique identifier of this 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) voidvoidsetTargets(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_ID
- See Also:
-
JSON_PROPERTY_TARGETS
- See Also:
-
-
Constructor Details
-
EscalationPolicyUpdateRequestDataAttributesStepsItems
public EscalationPolicyUpdateRequestDataAttributesStepsItems() -
EscalationPolicyUpdateRequestDataAttributesStepsItems
public EscalationPolicyUpdateRequestDataAttributesStepsItems(List<EscalationPolicyStepTarget> targets)
-
-
Method Details
-
assignment
public EscalationPolicyUpdateRequestDataAttributesStepsItems assignment(EscalationPolicyStepAttributesAssignment assignment) -
getAssignment
Specifies how this escalation step will assign targets (exampledefaultorround-robin).- Returns:
- assignment
-
setAssignment
-
escalateAfterSeconds
public EscalationPolicyUpdateRequestDataAttributesStepsItems escalateAfterSeconds(Long escalateAfterSeconds) -
getEscalateAfterSeconds
Defines how many seconds to wait before escalating to the next step. minimum: 60 maximum: 36000- Returns:
- escalateAfterSeconds
-
setEscalateAfterSeconds
-
id
-
getId
Specifies the unique identifier of this step.- Returns:
- id
-
setId
-
targets
public EscalationPolicyUpdateRequestDataAttributesStepsItems targets(List<EscalationPolicyStepTarget> targets) -
addTargetsItem
public EscalationPolicyUpdateRequestDataAttributesStepsItems addTargetsItem(EscalationPolicyStepTarget targetsItem) -
getTargets
Specifies the collection of escalation targets for this step.- Returns:
- targets
-
setTargets
-
putAdditionalProperty
public EscalationPolicyUpdateRequestDataAttributesStepsItems 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:
- EscalationPolicyUpdateRequestDataAttributesStepsItems
-
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 EscalationPolicyUpdateRequestDataAttributesStepsItems object is equal to o. -
hashCode
public int hashCode() -
toString
-