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 Details

  • Constructor Details

    • CustomRule

      public CustomRule()
    • CustomRule

      public CustomRule(String id, String name)
  • Method Details

    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Creation timestamp
      Returns:
      createdAt
    • getCreatedBy

      @Nullable public String getCreatedBy()
      Creator identifier
      Returns:
      createdBy
    • id

      public CustomRule id(String id)
    • getId

      public String getId()
      Rule identifier, which is the same as the rule name.
      Returns:
      id
    • setId

      public void setId(String id)
    • lastRevision

      public CustomRule lastRevision(CustomRuleRevisionInput lastRevision)
    • getLastRevision

      @Nullable public CustomRuleRevisionInput 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 a data/type/ attributes envelope. id, version_id, checksum , created_at and created_by are server-assigned and read-only; they are declared so that a ruleset previously read back can be supplied unchanged.
      Returns:
      lastRevision
    • setLastRevision

      public void setLastRevision(CustomRuleRevisionInput lastRevision)
    • name

      public CustomRule name(String name)
    • getName

      public String getName()
      Rule name
      Returns:
      name
    • setName

      public void setName(String name)
    • revisions

      public CustomRule revisions(List<CustomRuleRevisionInput> revisions)
    • addRevisionsItem

      public CustomRule addRevisionsItem(CustomRuleRevisionInput revisionsItem)
    • getRevisions

      @Nullable public List<CustomRuleRevisionInput> 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

      public void setRevisions(List<CustomRuleRevisionInput> revisions)
    • equals

      public boolean equals(Object o)
      Return true if this CustomRule object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object