Package com.datadog.api.client.v2.model
Class CustomRule
java.lang.Object
com.datadog.api.client.v2.model.CustomRule
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CustomRule
extends Object
A custom static analysis rule within a ruleset, as supplied in a create or update request. Nested
rules are sent flat, without a
data/type/attributes
envelope. id and name are client-supplied and must match each other.
The remaining members are server-assigned and read-only; they are declared so that a ruleset
previously read back can be supplied unchanged.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRevisionsItem(CustomRuleRevisionInput revisionsItem) booleanReturn true if this CustomRule object is equal to o.Creation timestampCreator identifiergetId()Rule identifier, which is the same as the rule name.A revision of a custom static analysis rule as embedded in a rule supplied by a create or update request.getName()Rule nameRevision history of the rule.org.openapitools.jackson.nullable.JsonNullable<List<CustomRuleRevisionInput>>inthashCode()lastRevision(CustomRuleRevisionInput lastRevision) revisions(List<CustomRuleRevisionInput> revisions) voidvoidsetLastRevision(CustomRuleRevisionInput lastRevision) voidvoidsetRevisions(List<CustomRuleRevisionInput> revisions) voidsetRevisions_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<CustomRuleRevisionInput>> revisions) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_CREATED_BY
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_LAST_REVISION
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_REVISIONS
- See Also:
-
-
Constructor Details
-
CustomRule
public CustomRule() -
CustomRule
-
-
Method Details
-
getCreatedAt
Creation timestamp- Returns:
- createdAt
-
getCreatedBy
Creator identifier- Returns:
- createdBy
-
id
-
getId
Rule identifier, which is the same as the rule name.- Returns:
- id
-
setId
-
lastRevision
-
getLastRevision
A revision of a custom static analysis rule as embedded in a rule supplied by a create or update request. Nested revisions are sent flat, without adata/type/attributesenvelope.id,version_id,checksum,created_atandcreated_byare server-assigned and read-only; they are declared so that a ruleset previously read back can be supplied unchanged.- Returns:
- lastRevision
-
setLastRevision
-
name
-
getName
Rule name- Returns:
- name
-
setName
-
revisions
-
addRevisionsItem
-
getRevisions
Revision history of the rule.- Returns:
- revisions
-
getRevisions_JsonNullable
public org.openapitools.jackson.nullable.JsonNullable<List<CustomRuleRevisionInput>> getRevisions_JsonNullable() -
setRevisions_JsonNullable
public void setRevisions_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<List<CustomRuleRevisionInput>> revisions) -
setRevisions
-
equals
Return true if this CustomRule object is equal to o. -
hashCode
public int hashCode() -
toString
-