Package com.datadog.api.client.v2.model
Class RestrictionPolicyBinding
java.lang.Object
com.datadog.api.client.v2.model.RestrictionPolicyBinding
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class RestrictionPolicyBinding
extends Object
Specifies which principals are associated with a relation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPrincipalsItem(String principalsItem) booleanReturn true if this RestrictionPolicyBinding object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.An array of principals.The role/level of access.inthashCode()principals(List<String> principals) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetPrincipals(List<String> principals) voidsetRelation(String relation) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_PRINCIPALS
- See Also:
-
JSON_PROPERTY_RELATION
- See Also:
-
-
Constructor Details
-
RestrictionPolicyBinding
public RestrictionPolicyBinding() -
RestrictionPolicyBinding
-
-
Method Details
-
principals
-
addPrincipalsItem
-
getPrincipals
An array of principals. A principal is a subject or group of subjects. Each principal is formatted astype:id. Supported types:role,team,user, andorg. The org ID can be obtained through the api/v2/current_user API. The user principal type accepts service account IDs.- Returns:
- principals
-
setPrincipals
-
relation
-
getRelation
The role/level of access.- Returns:
- relation
-
setRelation
-
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:
- RestrictionPolicyBinding
-
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 RestrictionPolicyBinding object is equal to o. -
hashCode
public int hashCode() -
toString
-