Class CheckRestrictionsResourceDetails

java.lang.Object
com.azure.resourcemanager.policyinsights.models.CheckRestrictionsResourceDetails

public final class CheckRestrictionsResourceDetails extends Object
The information about the resource that will be evaluated.
  • Constructor Details

    • CheckRestrictionsResourceDetails

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

    • resourceContent

      public Object resourceContent()
      Get the resourceContent property: The resource content. This should include whatever properties are already known and can be a partial set of all resource properties.
      Returns:
      the resourceContent value.
    • withResourceContent

      public CheckRestrictionsResourceDetails withResourceContent(Object resourceContent)
      Set the resourceContent property: The resource content. This should include whatever properties are already known and can be a partial set of all resource properties.
      Parameters:
      resourceContent - the resourceContent value to set.
      Returns:
      the CheckRestrictionsResourceDetails object itself.
    • apiVersion

      public String apiVersion()
      Get the apiVersion property: The api-version of the resource content.
      Returns:
      the apiVersion value.
    • withApiVersion

      public CheckRestrictionsResourceDetails withApiVersion(String apiVersion)
      Set the apiVersion property: The api-version of the resource content.
      Parameters:
      apiVersion - the apiVersion value to set.
      Returns:
      the CheckRestrictionsResourceDetails object itself.
    • scope

      public String scope()
      Get the scope property: The scope where the resource is being created. For example, if the resource is a child resource this would be the parent resource's resource ID.
      Returns:
      the scope value.
    • withScope

      public CheckRestrictionsResourceDetails withScope(String scope)
      Set the scope property: The scope where the resource is being created. For example, if the resource is a child resource this would be the parent resource's resource ID.
      Parameters:
      scope - the scope value to set.
      Returns:
      the CheckRestrictionsResourceDetails object itself.
    • validate

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