Class GalleryInVMAccessControlProfileProperties
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryResourceProfilePropertiesBase
com.azure.resourcemanager.compute.models.GalleryInVMAccessControlProfileProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryResourceProfilePropertiesBase>
public final class GalleryInVMAccessControlProfileProperties
extends GalleryResourceProfilePropertiesBase
Describes the properties of a gallery inVMAccessControlProfile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryInVMAccessControlProfileProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the applicableHostEndpoint property: This property allows you to specify the Endpoint type for which this profile is defining the access control for.Get the description property: The description of this gallery inVMAccessControlProfile resources.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GalleryInVMAccessControlProfileProperties from the JsonReader.osType()Get the osType property: This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against.Get the provisioningState property: The provisioning state, which only appears in the response.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withApplicableHostEndpoint(EndpointTypes applicableHostEndpoint) Set the applicableHostEndpoint property: This property allows you to specify the Endpoint type for which this profile is defining the access control for.withDescription(String description) Set the description property: The description of this gallery inVMAccessControlProfile resources.withOsType(OperatingSystemTypes osType) Set the osType property: This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against.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
-
GalleryInVMAccessControlProfileProperties
public GalleryInVMAccessControlProfileProperties()Creates an instance of GalleryInVMAccessControlProfileProperties class.
-
-
Method Details
-
description
Get the description property: The description of this gallery inVMAccessControlProfile resources. This property is updatable.- Returns:
- the description value.
-
withDescription
Set the description property: The description of this gallery inVMAccessControlProfile resources. This property is updatable.- Parameters:
description- the description value to set.- Returns:
- the GalleryInVMAccessControlProfileProperties object itself.
-
osType
Get the osType property: This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'.- Returns:
- the osType value.
-
withOsType
Set the osType property: This property allows you to specify the OS type of the VMs/VMSS for which this profile can be used against. Possible values are: 'Windows' or 'Linux'.- Parameters:
osType- the osType value to set.- Returns:
- the GalleryInVMAccessControlProfileProperties object itself.
-
applicableHostEndpoint
Get the applicableHostEndpoint property: This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'.- Returns:
- the applicableHostEndpoint value.
-
withApplicableHostEndpoint
public GalleryInVMAccessControlProfileProperties withApplicableHostEndpoint(EndpointTypes applicableHostEndpoint) Set the applicableHostEndpoint property: This property allows you to specify the Endpoint type for which this profile is defining the access control for. Possible values are: 'WireServer' or 'IMDS'.- Parameters:
applicableHostEndpoint- the applicableHostEndpoint value to set.- Returns:
- the GalleryInVMAccessControlProfileProperties object itself.
-
provisioningState
Get the provisioningState property: The provisioning state, which only appears in the response.- Overrides:
provisioningStatein classGalleryResourceProfilePropertiesBase- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classGalleryResourceProfilePropertiesBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GalleryResourceProfilePropertiesBase>- Overrides:
toJsonin classGalleryResourceProfilePropertiesBase- Throws:
IOException
-
fromJson
public static GalleryInVMAccessControlProfileProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GalleryInVMAccessControlProfileProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GalleryInVMAccessControlProfileProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the GalleryInVMAccessControlProfileProperties.
-