Class OrgGroupPolicyUpdateAttributes

java.lang.Object
com.datadog.api.client.v2.model.OrgGroupPolicyUpdateAttributes

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class OrgGroupPolicyUpdateAttributes extends Object
Attributes for updating an org group policy. policy_name, content, and enforcement_tier may be omitted individually to leave them unchanged.
  • Field Details

  • Constructor Details

    • OrgGroupPolicyUpdateAttributes

      public OrgGroupPolicyUpdateAttributes()
  • Method Details

    • content

      public OrgGroupPolicyUpdateAttributes content(Map<String,Object> content)
    • putContentItem

      public OrgGroupPolicyUpdateAttributes putContentItem(String key, Object contentItem)
    • getContent

      @Nullable public Map<String,Object> getContent()
      The policy content as key-value pairs. For org_config policies, an arbitrary key-value map (for example, {"value": "UTC"}). For role policies, a permissions key containing an array of permission UUIDs (for example, {"permissions": ["<uuid>", ...]}).
      Returns:
      content
    • setContent

      public void setContent(Map<String,Object> content)
    • enforcementTier

      public OrgGroupPolicyUpdateAttributes enforcementTier(OrgGroupPolicyEnforcementTier enforcementTier)
    • getEnforcementTier

      @Nullable public OrgGroupPolicyEnforcementTier getEnforcementTier()
      The enforcement tier of the policy. OVERRIDE_ALLOWED means the policy is set but member orgs may mutate it. GROUP_MANAGED means the policy is strictly controlled and mutations are blocked for affected orgs. DELEGATE means each member org controls its own value. role policies only support GROUP_MANAGED and DELEGATE — OVERRIDE_ALLOWED is rejected for this policy type. Transitioning a role policy to DELEGATE (disabling it) is one-way — the policy cannot be transitioned back to GROUP_MANAGED afterward.
      Returns:
      enforcementTier
    • setEnforcementTier

      public void setEnforcementTier(OrgGroupPolicyEnforcementTier enforcementTier)
    • policyName

      public OrgGroupPolicyUpdateAttributes policyName(String policyName)
    • getPolicyName

      @Nullable public String getPolicyName()
      The name of the policy. This becomes the name of the resource created across orgs in the group (for example, for role policies, the name of the created role). Omit to leave unchanged.
      Returns:
      policyName
    • setPolicyName

      public void setPolicyName(String policyName)
    • putAdditionalProperty

      public OrgGroupPolicyUpdateAttributes 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 set
      value - The associated value
      Returns:
      OrgGroupPolicyUpdateAttributes
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this OrgGroupPolicyUpdateAttributes object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object