Class RecommendationProperties

java.lang.Object
com.azure.resourcemanager.advisor.fluent.models.RecommendationProperties

public final class RecommendationProperties extends Object
The properties of the recommendation.
  • Constructor Details

    • RecommendationProperties

      public RecommendationProperties()
      Creates an instance of RecommendationProperties class.
  • Method Details

    • category

      public Category category()
      Get the category property: The category of the recommendation.
      Returns:
      the category value.
    • withCategory

      public RecommendationProperties withCategory(Category category)
      Set the category property: The category of the recommendation.
      Parameters:
      category - the category value to set.
      Returns:
      the RecommendationProperties object itself.
    • impact

      public Impact impact()
      Get the impact property: The business impact of the recommendation.
      Returns:
      the impact value.
    • withImpact

      public RecommendationProperties withImpact(Impact impact)
      Set the impact property: The business impact of the recommendation.
      Parameters:
      impact - the impact value to set.
      Returns:
      the RecommendationProperties object itself.
    • impactedField

      public String impactedField()
      Get the impactedField property: The resource type identified by Advisor.
      Returns:
      the impactedField value.
    • withImpactedField

      public RecommendationProperties withImpactedField(String impactedField)
      Set the impactedField property: The resource type identified by Advisor.
      Parameters:
      impactedField - the impactedField value to set.
      Returns:
      the RecommendationProperties object itself.
    • impactedValue

      public String impactedValue()
      Get the impactedValue property: The resource identified by Advisor.
      Returns:
      the impactedValue value.
    • withImpactedValue

      public RecommendationProperties withImpactedValue(String impactedValue)
      Set the impactedValue property: The resource identified by Advisor.
      Parameters:
      impactedValue - the impactedValue value to set.
      Returns:
      the RecommendationProperties object itself.
    • lastUpdated

      public OffsetDateTime lastUpdated()
      Get the lastUpdated property: The most recent time that Advisor checked the validity of the recommendation.
      Returns:
      the lastUpdated value.
    • withLastUpdated

      public RecommendationProperties withLastUpdated(OffsetDateTime lastUpdated)
      Set the lastUpdated property: The most recent time that Advisor checked the validity of the recommendation.
      Parameters:
      lastUpdated - the lastUpdated value to set.
      Returns:
      the RecommendationProperties object itself.
    • metadata

      public Map<String,Object> metadata()
      Get the metadata property: The recommendation metadata.
      Returns:
      the metadata value.
    • withMetadata

      public RecommendationProperties withMetadata(Map<String,Object> metadata)
      Set the metadata property: The recommendation metadata.
      Parameters:
      metadata - the metadata value to set.
      Returns:
      the RecommendationProperties object itself.
    • recommendationTypeId

      public String recommendationTypeId()
      Get the recommendationTypeId property: The recommendation-type GUID.
      Returns:
      the recommendationTypeId value.
    • withRecommendationTypeId

      public RecommendationProperties withRecommendationTypeId(String recommendationTypeId)
      Set the recommendationTypeId property: The recommendation-type GUID.
      Parameters:
      recommendationTypeId - the recommendationTypeId value to set.
      Returns:
      the RecommendationProperties object itself.
    • shortDescription

      public ShortDescription shortDescription()
      Get the shortDescription property: A summary of the recommendation.
      Returns:
      the shortDescription value.
    • withShortDescription

      public RecommendationProperties withShortDescription(ShortDescription shortDescription)
      Set the shortDescription property: A summary of the recommendation.
      Parameters:
      shortDescription - the shortDescription value to set.
      Returns:
      the RecommendationProperties object itself.
    • suppressionIds

      public List<UUID> suppressionIds()
      Get the suppressionIds property: The list of snoozed and dismissed rules for the recommendation.
      Returns:
      the suppressionIds value.
    • withSuppressionIds

      public RecommendationProperties withSuppressionIds(List<UUID> suppressionIds)
      Set the suppressionIds property: The list of snoozed and dismissed rules for the recommendation.
      Parameters:
      suppressionIds - the suppressionIds value to set.
      Returns:
      the RecommendationProperties object itself.
    • extendedProperties

      public Map<String,String> extendedProperties()
      Get the extendedProperties property: Extended properties.
      Returns:
      the extendedProperties value.
    • withExtendedProperties

      public RecommendationProperties withExtendedProperties(Map<String,String> extendedProperties)
      Set the extendedProperties property: Extended properties.
      Parameters:
      extendedProperties - the extendedProperties value to set.
      Returns:
      the RecommendationProperties object itself.
    • resourceMetadata

      public ResourceMetadata resourceMetadata()
      Get the resourceMetadata property: Metadata of resource that was assessed.
      Returns:
      the resourceMetadata value.
    • withResourceMetadata

      public RecommendationProperties withResourceMetadata(ResourceMetadata resourceMetadata)
      Set the resourceMetadata property: Metadata of resource that was assessed.
      Parameters:
      resourceMetadata - the resourceMetadata value to set.
      Returns:
      the RecommendationProperties object itself.
    • description

      public String description()
      Get the description property: The detailed description of recommendation.
      Returns:
      the description value.
    • withDescription

      public RecommendationProperties withDescription(String description)
      Set the description property: The detailed description of recommendation.
      Parameters:
      description - the description value to set.
      Returns:
      the RecommendationProperties object itself.
    • label

      public String label()
      Get the label property: The label of recommendation.
      Returns:
      the label value.
    • withLabel

      public RecommendationProperties withLabel(String label)
      Set the label property: The label of recommendation.
      Parameters:
      label - the label value to set.
      Returns:
      the RecommendationProperties object itself.
    • learnMoreLink

      public String learnMoreLink()
      Get the learnMoreLink property: The link to learn more about recommendation and generation logic.
      Returns:
      the learnMoreLink value.
    • withLearnMoreLink

      public RecommendationProperties withLearnMoreLink(String learnMoreLink)
      Set the learnMoreLink property: The link to learn more about recommendation and generation logic.
      Parameters:
      learnMoreLink - the learnMoreLink value to set.
      Returns:
      the RecommendationProperties object itself.
    • potentialBenefits

      public String potentialBenefits()
      Get the potentialBenefits property: The potential benefit of implementing recommendation.
      Returns:
      the potentialBenefits value.
    • withPotentialBenefits

      public RecommendationProperties withPotentialBenefits(String potentialBenefits)
      Set the potentialBenefits property: The potential benefit of implementing recommendation.
      Parameters:
      potentialBenefits - the potentialBenefits value to set.
      Returns:
      the RecommendationProperties object itself.
    • actions

      public List<Map<String,Object>> actions()
      Get the actions property: The list of recommended actions to implement recommendation.
      Returns:
      the actions value.
    • withActions

      public RecommendationProperties withActions(List<Map<String,Object>> actions)
      Set the actions property: The list of recommended actions to implement recommendation.
      Parameters:
      actions - the actions value to set.
      Returns:
      the RecommendationProperties object itself.
    • remediation

      public Map<String,Object> remediation()
      Get the remediation property: The automated way to apply recommendation.
      Returns:
      the remediation value.
    • withRemediation

      public RecommendationProperties withRemediation(Map<String,Object> remediation)
      Set the remediation property: The automated way to apply recommendation.
      Parameters:
      remediation - the remediation value to set.
      Returns:
      the RecommendationProperties object itself.
    • exposedMetadataProperties

      public Map<String,Object> exposedMetadataProperties()
      Get the exposedMetadataProperties property: The recommendation metadata properties exposed to customer to provide additional information.
      Returns:
      the exposedMetadataProperties value.
    • withExposedMetadataProperties

      public RecommendationProperties withExposedMetadataProperties(Map<String,Object> exposedMetadataProperties)
      Set the exposedMetadataProperties property: The recommendation metadata properties exposed to customer to provide additional information.
      Parameters:
      exposedMetadataProperties - the exposedMetadataProperties value to set.
      Returns:
      the RecommendationProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.