Class ImageVersionSecurityProfile
java.lang.Object
com.azure.resourcemanager.compute.models.ImageVersionSecurityProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ImageVersionSecurityProfile>
public final class ImageVersionSecurityProfile
extends Object
implements com.azure.json.JsonSerializable<ImageVersionSecurityProfile>
The security profile of a gallery image version.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ImageVersionSecurityProfile class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageVersionSecurityProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ImageVersionSecurityProfile from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the uefiSettings property: Contains UEFI settings for the image version.voidvalidate()Validates the instance.withUefiSettings(GalleryImageVersionUefiSettings uefiSettings) Set the uefiSettings property: Contains UEFI settings for the image version.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ImageVersionSecurityProfile
public ImageVersionSecurityProfile()Creates an instance of ImageVersionSecurityProfile class.
-
-
Method Details
-
uefiSettings
Get the uefiSettings property: Contains UEFI settings for the image version.- Returns:
- the uefiSettings value.
-
withUefiSettings
Set the uefiSettings property: Contains UEFI settings for the image version.- Parameters:
uefiSettings- the uefiSettings value to set.- Returns:
- the ImageVersionSecurityProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ImageVersionSecurityProfile>- Throws:
IOException
-
fromJson
public static ImageVersionSecurityProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ImageVersionSecurityProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ImageVersionSecurityProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ImageVersionSecurityProfile.
-