Package com.datadog.api.client.v2.model
Class CustomRulesetRequestData
java.lang.Object
com.datadog.api.client.v2.model.CustomRulesetRequestData
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CustomRulesetRequestData
extends Object
Data object for a custom ruleset create or update request. The resource
id is
required and must equal both attributes.name and, on update, the ruleset_name
path parameter; a request that omits it or supplies a different value is rejected with a
412 response.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomRulesetRequestData(CustomRulesetRequestDataAttributes attributes, String id, CustomRulesetDataType type) -
Method Summary
Modifier and TypeMethodDescriptionattributes(CustomRulesetRequestDataAttributes attributes) booleanReturn true if this CustomRulesetRequestData object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Attributes for creating or updating a custom ruleset.getId()Ruleset identifier, which is the same as the ruleset name.getType()Resource typeinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAttributes(CustomRulesetRequestDataAttributes attributes) voidvoidsetType(CustomRulesetDataType type) toString()type(CustomRulesetDataType type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ATTRIBUTES
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
CustomRulesetRequestData
public CustomRulesetRequestData() -
CustomRulesetRequestData
public CustomRulesetRequestData(CustomRulesetRequestDataAttributes attributes, String id, CustomRulesetDataType type)
-
-
Method Details
-
attributes
-
getAttributes
Attributes for creating or updating a custom ruleset.nameis required and must equal the resourceid; the server rejects a mismatch with a 412 response.- Returns:
- attributes
-
setAttributes
-
id
-
getId
Ruleset identifier, which is the same as the ruleset name.- Returns:
- id
-
setId
-
type
-
getType
Resource type- Returns:
- type
-
setType
-
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:
- CustomRulesetRequestData
-
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 CustomRulesetRequestData object is equal to o. -
hashCode
public int hashCode() -
toString
-