Package com.datadog.api.client.v2.model
Class ExecutionPolicyWriteAttributes
java.lang.Object
com.datadog.api.client.v2.model.ExecutionPolicyWriteAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ExecutionPolicyWriteAttributes
extends Object
Attributes used to create or update an execution policy.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExecutionPolicyWriteAttributes(ExecutionPolicyActionPattern actionPattern, ExecutionPolicyEffect effect, String name) -
Method Summary
Modifier and TypeMethodDescriptionactionPattern(ExecutionPolicyActionPattern actionPattern) addTargetsItem(ExecutionPolicyTarget targetsItem) effect(ExecutionPolicyEffect effect) booleanReturn true if this ExecutionPolicyWriteAttributes 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.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.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.scope(ExecutionPolicyScope scope) voidsetActionPattern(ExecutionPolicyActionPattern actionPattern) voidsetEffect(ExecutionPolicyEffect effect) voidvoidsetScope(ExecutionPolicyScope scope) voidsetTargets(List<ExecutionPolicyTarget> targets) targets(List<ExecutionPolicyTarget> targets) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ACTION_PATTERN
- See Also:
-
JSON_PROPERTY_EFFECT
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_SCOPE
- See Also:
-
JSON_PROPERTY_TARGETS
- See Also:
-
-
Constructor Details
-
ExecutionPolicyWriteAttributes
public ExecutionPolicyWriteAttributes() -
ExecutionPolicyWriteAttributes
public ExecutionPolicyWriteAttributes(ExecutionPolicyActionPattern actionPattern, ExecutionPolicyEffect effect, String name)
-
-
Method Details
-
actionPattern
-
getActionPattern
The set of actions this policy applies to.- Returns:
- actionPattern
-
setActionPattern
-
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
-
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:
- ExecutionPolicyWriteAttributes
-
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 ExecutionPolicyWriteAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-