Class OrgGroupPolicyAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class OrgGroupPolicyAttributes extends Object
Attributes of an org group policy.
  • Field Details

  • Constructor Details

  • Method Details

    • content

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

      public OrgGroupPolicyAttributes 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 OrgGroupPolicyAttributes enforcementTier(OrgGroupPolicyEnforcementTier enforcementTier)
    • getEnforcementTier

      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)
    • modifiedAt

      public OrgGroupPolicyAttributes modifiedAt(OffsetDateTime modifiedAt)
    • getModifiedAt

      public OffsetDateTime getModifiedAt()
      Timestamp when the policy was last modified.
      Returns:
      modifiedAt
    • setModifiedAt

      public void setModifiedAt(OffsetDateTime modifiedAt)
    • policyName

      public OrgGroupPolicyAttributes policyName(String policyName)
    • getPolicyName

      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).
      Returns:
      policyName
    • setPolicyName

      public void setPolicyName(String policyName)
    • policyType

      public OrgGroupPolicyAttributes policyType(OrgGroupPolicyPolicyType policyType)
    • getPolicyType

      public OrgGroupPolicyPolicyType getPolicyType()
      The type of the policy. org_config indicates a policy backed by an organization configuration setting. role indicates a policy backed by a Datadog custom role.
      Returns:
      policyType
    • setPolicyType

      public void setPolicyType(OrgGroupPolicyPolicyType policyType)
    • putAdditionalProperty

      public OrgGroupPolicyAttributes 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:
      OrgGroupPolicyAttributes
    • 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 OrgGroupPolicyAttributes 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