Class CostRecommendationDataAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class CostRecommendationDataAttributes extends Object
Attributes describing a single cost recommendation.
  • Field Details

  • Constructor Details

    • CostRecommendationDataAttributes

      public CostRecommendationDataAttributes()
  • Method Details

    • ddResourceKey

      public CostRecommendationDataAttributes ddResourceKey(String ddResourceKey)
    • getDdResourceKey

      @Nullable public String getDdResourceKey()
      Datadog resource key identifying the recommended resource.
      Returns:
      ddResourceKey
    • setDdResourceKey

      public void setDdResourceKey(String ddResourceKey)
    • potentialDailySavings

    • getPotentialDailySavings

      @Nullable public CostRecommendationDataAttributesPotentialDailySavings getPotentialDailySavings()
      Estimated daily savings if the recommendation is applied.
      Returns:
      potentialDailySavings
    • setPotentialDailySavings

      public void setPotentialDailySavings(CostRecommendationDataAttributesPotentialDailySavings potentialDailySavings)
    • recommendationType

      public CostRecommendationDataAttributes recommendationType(String recommendationType)
    • getRecommendationType

      @Nullable public String getRecommendationType()
      The kind of recommendation (for example, terminate or rightsize).
      Returns:
      recommendationType
    • setRecommendationType

      public void setRecommendationType(String recommendationType)
    • resourceId

      public CostRecommendationDataAttributes resourceId(String resourceId)
    • getResourceId

      @Nullable public String getResourceId()
      Cloud provider identifier of the resource.
      Returns:
      resourceId
    • setResourceId

      public void setResourceId(String resourceId)
    • resourceType

      public CostRecommendationDataAttributes resourceType(String resourceType)
    • getResourceType

      @Nullable public String getResourceType()
      Resource type (for example, aws_ec2_instance).
      Returns:
      resourceType
    • setResourceType

      public void setResourceType(String resourceType)
    • tags

    • addTagsItem

      public CostRecommendationDataAttributes addTagsItem(String tagsItem)
    • getTags

      @Nullable public List<String> getTags()
      Tags attached to the recommended resource.
      Returns:
      tags
    • setTags

      public void setTags(List<String> tags)
    • putAdditionalProperty

      public CostRecommendationDataAttributes 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:
      CostRecommendationDataAttributes
    • 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 CostRecommendationDataAttributes 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