GalleryImageVersionSafetyProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GalleryArtifactSafetyProfileBase - com.
azure. resourcemanager. compute. models. GalleryImageVersionSafetyProfile
- com.
- com.
public final class GalleryImageVersionSafetyProfile
extends GalleryArtifactSafetyProfileBase
This is the safety profile of the Gallery Image Version.
Constructor Summary
Constructor | Description |
---|---|
GalleryImageVersionSafetyProfile() |
Creates an instance of Gallery |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Gallery |
fromJson(JsonReader jsonReader)
Reads an instance of Gallery |
List<Policy |
policyViolations()
Get the policy |
Boolean |
reportedForPolicyViolation()
Get the reported |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Gallery |
withAllowDeletionOfReplicatedLocations(Boolean allowDeletionOfReplicatedLocations)
Set the allow |
Methods inherited from GalleryArtifactSafetyProfileBase
Methods inherited from java.lang.Object
Constructor Details
GalleryImageVersionSafetyProfile
public GalleryImageVersionSafetyProfile()
Creates an instance of GalleryImageVersionSafetyProfile class.
Method Details
fromJson
public static GalleryImageVersionSafetyProfile fromJson(JsonReader jsonReader)
Reads an instance of GalleryImageVersionSafetyProfile from the JsonReader.
Parameters:
Returns:
Throws:
policyViolations
public List
Get the policyViolations property: A list of Policy Violations that have been reported for this Gallery Image Version.
Returns:
reportedForPolicyViolation
public Boolean reportedForPolicyViolation()
Get the reportedForPolicyViolation property: Indicates whether this image has been reported as violating Microsoft's policies.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
GalleryImageVersionSafetyProfile.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
GalleryImageVersionSafetyProfile.validate()withAllowDeletionOfReplicatedLocations
public GalleryImageVersionSafetyProfile withAllowDeletionOfReplicatedLocations(Boolean allowDeletionOfReplicatedLocations)
Set the allowDeletionOfReplicatedLocations property: Indicates whether or not removing this Gallery Image Version from replicated regions is allowed.
Overrides:
GalleryImageVersionSafetyProfile.withAllowDeletionOfReplicatedLocations(Boolean allowDeletionOfReplicatedLocations)Parameters:
Applies to
Azure SDK for Java