Package com.datadog.api.client.v2.model
Class CustomRuleAttributes
java.lang.Object
com.datadog.api.client.v2.model.CustomRuleAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class CustomRuleAttributes
extends Object
Attributes of a custom static analysis rule, including its most recent revision and revision
history.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCustomRuleAttributes(OffsetDateTime createdAt, String createdBy, CustomRuleRevisionEmbedded lastRevision, String name, List<CustomRuleRevisionEmbedded> revisions) -
Method Summary
Modifier and TypeMethodDescriptionaddRevisionsItem(CustomRuleRevisionEmbedded revisionsItem) createdAt(OffsetDateTime createdAt) booleanReturn true if this CustomRuleAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Creation timestampCreator identifierA revision of a custom static analysis rule as embedded in a rule or ruleset response.getName()Rule nameRevision history of the rule.inthashCode()lastRevision(CustomRuleRevisionEmbedded lastRevision) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.revisions(List<CustomRuleRevisionEmbedded> revisions) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCreatedBy(String createdBy) voidsetLastRevision(CustomRuleRevisionEmbedded lastRevision) voidvoidsetRevisions(List<CustomRuleRevisionEmbedded> revisions) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CREATED_AT
- See Also:
-
JSON_PROPERTY_CREATED_BY
- See Also:
-
JSON_PROPERTY_LAST_REVISION
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_REVISIONS
- See Also:
-
-
Constructor Details
-
CustomRuleAttributes
public CustomRuleAttributes() -
CustomRuleAttributes
public CustomRuleAttributes(OffsetDateTime createdAt, String createdBy, CustomRuleRevisionEmbedded lastRevision, String name, List<CustomRuleRevisionEmbedded> revisions)
-
-
Method Details
-
createdAt
-
getCreatedAt
Creation timestamp- Returns:
- createdAt
-
setCreatedAt
-
createdBy
-
getCreatedBy
Creator identifier- Returns:
- createdBy
-
setCreatedBy
-
lastRevision
-
getLastRevision
A revision of a custom static analysis rule as embedded in a rule or ruleset response.- Returns:
- lastRevision
-
setLastRevision
-
name
-
getName
Rule name- Returns:
- name
-
setName
-
revisions
-
addRevisionsItem
-
getRevisions
Revision history of the rule.- Returns:
- revisions
-
setRevisions
-
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:
- CustomRuleAttributes
-
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 CustomRuleAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-