Class CreateSnapshotTemplateVariable

java.lang.Object
com.datadog.api.client.v2.model.CreateSnapshotTemplateVariable

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CreateSnapshotTemplateVariable extends Object
A template variable definition for snapshot rendering.
  • Field Details

  • Constructor Details

    • CreateSnapshotTemplateVariable

      public CreateSnapshotTemplateVariable()
    • CreateSnapshotTemplateVariable

      public CreateSnapshotTemplateVariable(String name, String prefix, List<String> values)
  • Method Details

    • name

    • getName

      public String getName()
      The template variable name.
      Returns:
      name
    • setName

      public void setName(String name)
    • prefix

      public CreateSnapshotTemplateVariable prefix(String prefix)
    • getPrefix

      public String getPrefix()
      The tag prefix associated with the template variable. For example, a prefix of host with a value of web-server-1 scopes the snapshot to host:web-server-1.
      Returns:
      prefix
    • setPrefix

      public void setPrefix(String prefix)
    • values

      public CreateSnapshotTemplateVariable values(List<String> values)
    • addValuesItem

      public CreateSnapshotTemplateVariable addValuesItem(String valuesItem)
    • getValues

      public List<String> getValues()
      The list of scoped values for this template variable.
      Returns:
      values
    • setValues

      public void setValues(List<String> values)
    • putAdditionalProperty

      public CreateSnapshotTemplateVariable putAdditionalProperty(String key, Object value)
      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 set
      value - The associated value
      Returns:
      CreateSnapshotTemplateVariable
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this CreateSnapshotTemplateVariable 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