Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOrgGroupPolicyCreateAttributes(Map<String, Object> content, String policyName) -
Method Summary
Modifier and TypeMethodDescriptionenforcementTier(OrgGroupPolicyEnforcementTier enforcementTier) booleanReturn true if this OrgGroupPolicyCreateAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The policy content as key-value pairs.The enforcement tier of the policy.The name of the policy.The type of the policy.inthashCode()policyName(String policyName) policyType(OrgGroupPolicyPolicyType policyType) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putContentItem(String key, Object contentItem) voidsetContent(Map<String, Object> content) voidsetEnforcementTier(OrgGroupPolicyEnforcementTier enforcementTier) voidsetPolicyName(String policyName) voidsetPolicyType(OrgGroupPolicyPolicyType policyType) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CONTENT
- See Also:
-
JSON_PROPERTY_ENFORCEMENT_TIER
- See Also:
-
JSON_PROPERTY_POLICY_NAME
- See Also:
-
JSON_PROPERTY_POLICY_TYPE
- See Also:
-
-
Constructor Details
-
OrgGroupPolicyCreateAttributes
public OrgGroupPolicyCreateAttributes() -
OrgGroupPolicyCreateAttributes
-
-
Method Details
-
content
-
putContentItem
-
getContent
The policy content as key-value pairs. Fororg_configpolicies, an arbitrary key-value map (for example,{"value": "UTC"}). Forrolepolicies, apermissionskey containing an array of permission UUIDs (for example,{"permissions": ["<uuid>", ...]}).- Returns:
- content
-
setContent
-
enforcementTier
public OrgGroupPolicyCreateAttributes enforcementTier(OrgGroupPolicyEnforcementTier enforcementTier) -
getEnforcementTier
The enforcement tier of the policy.OVERRIDE_ALLOWEDmeans the policy is set but member orgs may mutate it.GROUP_MANAGEDmeans the policy is strictly controlled and mutations are blocked for affected orgs.DELEGATEmeans each member org controls its own value.rolepolicies only supportGROUP_MANAGEDandDELEGATE—OVERRIDE_ALLOWEDis rejected for this policy type. Transitioning arolepolicy toDELEGATE(disabling it) is one-way — the policy cannot be transitioned back toGROUP_MANAGEDafterward.- Returns:
- enforcementTier
-
setEnforcementTier
-
policyName
-
getPolicyName
The name of the policy. This becomes the name of the resource created across orgs in the group (for example, forrolepolicies, the name of the created role).- Returns:
- policyName
-
setPolicyName
-
policyType
-
getPolicyType
The type of the policy.org_configindicates a policy backed by an organization configuration setting.roleindicates a policy backed by a Datadog custom role.- Returns:
- policyType
-
setPolicyType
-
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:
- OrgGroupPolicyCreateAttributes
-
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 OrgGroupPolicyCreateAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-