Package com.datadog.api.client.v2.model
Class ExecutionPolicyAttributes
java.lang.Object
com.datadog.api.client.v2.model.ExecutionPolicyAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ExecutionPolicyAttributes
extends Object
An execution policy.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExecutionPolicyAttributes(ExecutionPolicyActionPattern actionPattern, OffsetDateTime createdAt, String createdBy, ExecutionPolicyEffect effect, String name, List<ExecutionPolicyTarget> targets, OffsetDateTime updatedAt, String updatedBy, Integer version) -
Method Summary
Modifier and TypeMethodDescriptionactionPattern(ExecutionPolicyActionPattern actionPattern) addTargetsItem(ExecutionPolicyTarget targetsItem) createdAt(OffsetDateTime createdAt) effect(ExecutionPolicyEffect effect) booleanReturn true if this ExecutionPolicyAttributes object is equal to o.The set of actions this policy applies to.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The date and time the execution policy was created.The ID of the user who created the execution policy.Whether the policy allows or denies matching actions.getName()The name of the execution policy.getScope()Restricts where the policy applies.The targets this policy applies to.The date and time the execution policy was last updated.The ID of the user who last updated the execution policy.The version of the execution policy.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.scope(ExecutionPolicyScope scope) voidsetActionPattern(ExecutionPolicyActionPattern actionPattern) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(String createdBy) voidsetEffect(ExecutionPolicyEffect effect) voidvoidsetScope(ExecutionPolicyScope scope) voidsetTargets(List<ExecutionPolicyTarget> targets) voidsetUpdatedAt(OffsetDateTime updatedAt) voidsetUpdatedBy(String updatedBy) voidsetVersion(Integer version) targets(List<ExecutionPolicyTarget> targets) toString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ACTION_PATTERN
- See Also:
-
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_CREATED_BY
- See Also:
-
JSON_PROPERTY_EFFECT
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_SCOPE
- See Also:
-
JSON_PROPERTY_TARGETS
- See Also:
-
JSON_PROPERTY_UPDATED_AT
- See Also:
-
JSON_PROPERTY_UPDATED_BY
- See Also:
-
JSON_PROPERTY_VERSION
- See Also:
-
-
Constructor Details
-
ExecutionPolicyAttributes
public ExecutionPolicyAttributes() -
ExecutionPolicyAttributes
public ExecutionPolicyAttributes(ExecutionPolicyActionPattern actionPattern, OffsetDateTime createdAt, String createdBy, ExecutionPolicyEffect effect, String name, List<ExecutionPolicyTarget> targets, OffsetDateTime updatedAt, String updatedBy, Integer version)
-
-
Method Details
-
actionPattern
-
getActionPattern
The set of actions this policy applies to.- Returns:
- actionPattern
-
setActionPattern
-
createdAt
-
getCreatedAt
The date and time the execution policy was created.- Returns:
- createdAt
-
setCreatedAt
-
createdBy
-
getCreatedBy
The ID of the user who created the execution policy.- Returns:
- createdBy
-
setCreatedBy
-
effect
-
getEffect
Whether the policy allows or denies matching actions.- Returns:
- effect
-
setEffect
-
name
-
getName
The name of the execution policy.- Returns:
- name
-
setName
-
scope
-
getScope
Restricts where the policy applies. At most one ofkubernetes,scripts, orremote_action_rshellcan be set. An empty object means the policy has no scope restriction.- Returns:
- scope
-
setScope
-
targets
-
addTargetsItem
-
getTargets
The targets this policy applies to.- Returns:
- targets
-
setTargets
-
updatedAt
-
getUpdatedAt
The date and time the execution policy was last updated.- Returns:
- updatedAt
-
setUpdatedAt
-
updatedBy
-
getUpdatedBy
The ID of the user who last updated the execution policy.- Returns:
- updatedBy
-
setUpdatedBy
-
version
-
getVersion
The version of the execution policy. Incremented on every update. maximum: 2147483647- Returns:
- version
-
setVersion
-
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:
- ExecutionPolicyAttributes
-
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 ExecutionPolicyAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-