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 Details

    • GalleryInVMAccessControlProfileProperties

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

    • description

      public String description()
      Get the description property: The description of this gallery inVMAccessControlProfile resources. This property is updatable.
      Returns:
      the description value.
    • withDescription

      public GalleryInVMAccessControlProfileProperties withDescription(String description)
      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

      public OperatingSystemTypes 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

      public EndpointTypes 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

      public GalleryProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state, which only appears in the response.
      Overrides:
      provisioningState in class GalleryResourceProfilePropertiesBase
      Returns:
      the provisioningState value.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class GalleryResourceProfilePropertiesBase
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<GalleryResourceProfilePropertiesBase>
      Overrides:
      toJson in class GalleryResourceProfilePropertiesBase
      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.