Class CheckRestrictionsResourceDetails
java.lang.Object
com.azure.resourcemanager.policyinsights.models.CheckRestrictionsResourceDetails
The information about the resource that will be evaluated.
-
Constructor Summary
ConstructorDescriptionCreates an instance of CheckRestrictionsResourceDetails class. -
Method Summary
Modifier and TypeMethodDescriptionGet the apiVersion property: The api-version of the resource content.Get the resourceContent property: The resource content.scope()
Get the scope property: The scope where the resource is being created.void
validate()
Validates the instance.withApiVersion
(String apiVersion) Set the apiVersion property: The api-version of the resource content.withResourceContent
(Object resourceContent) Set the resourceContent property: The resource content.Set the scope property: The scope where the resource is being created.
-
Constructor Details
-
CheckRestrictionsResourceDetails
public CheckRestrictionsResourceDetails()Creates an instance of CheckRestrictionsResourceDetails class.
-
-
Method Details
-
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
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
Get the apiVersion property: The api-version of the resource content.- Returns:
- the apiVersion value.
-
withApiVersion
Set the apiVersion property: The api-version of the resource content.- Parameters:
apiVersion
- the apiVersion value to set.- Returns:
- the CheckRestrictionsResourceDetails object itself.
-
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
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.
-