Class OrgGroupPolicyCreateAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class OrgGroupPolicyCreateAttributes extends Object
Attributes for creating an org group policy. If policy_type is not provided, it defaults to org_config. enforcement_tier is optional; if not provided, the resulting value depends on policy_type and is otherwise unspecified.
  • Field Details

  • Constructor Details

    • OrgGroupPolicyCreateAttributes

      public OrgGroupPolicyCreateAttributes()
    • OrgGroupPolicyCreateAttributes

      public OrgGroupPolicyCreateAttributes(Map<String,Object> content, String policyName)
  • Method Details

    • content

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

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

      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 OrgGroupPolicyCreateAttributes 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 OrgGroupPolicyCreateAttributes 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

    • getPolicyType

      @Nullable 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 OrgGroupPolicyCreateAttributes 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:
      OrgGroupPolicyCreateAttributes
    • 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 OrgGroupPolicyCreateAttributes 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