Class VirtualMachineScaleSetUpdateVMProfile
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetUpdateVMProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineScaleSetUpdateVMProfile>
public final class VirtualMachineScaleSetUpdateVMProfile
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineScaleSetUpdateVMProfile>
Describes a virtual machine scale set virtual machine profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetUpdateVMProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the billingProfile property: Specifies the billing related details of a Azure Spot VMSS.Get the diagnosticsProfile property: The virtual machine scale set diagnostics profile.Get the extensionProfile property: The virtual machine scale set extension profile.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineScaleSetUpdateVMProfile from the JsonReader.Get the hardwareProfile property: Specifies the hardware profile related details of a scale set.Get the licenseType property: The license type, which is for bring your own license scenario.Get the networkProfile property: The virtual machine scale set network profile.Get the osProfile property: The virtual machine scale set OS profile.Get the scheduledEventsProfile property: Specifies Scheduled Event related configurations.Get the securityPostureReference property: The virtual machine scale set security posture reference.Get the securityProfile property: The virtual machine scale set Security profile.Get the storageProfile property: The virtual machine scale set storage profile.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) userData()Get the userData property: UserData for the VM, which must be base-64 encoded.voidvalidate()Validates the instance.withBillingProfile(BillingProfile billingProfile) Set the billingProfile property: Specifies the billing related details of a Azure Spot VMSS.withDiagnosticsProfile(DiagnosticsProfile diagnosticsProfile) Set the diagnosticsProfile property: The virtual machine scale set diagnostics profile.withExtensionProfile(VirtualMachineScaleSetExtensionProfile extensionProfile) Set the extensionProfile property: The virtual machine scale set extension profile.withHardwareProfile(VirtualMachineScaleSetHardwareProfile hardwareProfile) Set the hardwareProfile property: Specifies the hardware profile related details of a scale set.withLicenseType(String licenseType) Set the licenseType property: The license type, which is for bring your own license scenario.withNetworkProfile(VirtualMachineScaleSetUpdateNetworkProfile networkProfile) Set the networkProfile property: The virtual machine scale set network profile.Set the osProfile property: The virtual machine scale set OS profile.withScheduledEventsProfile(ScheduledEventsProfile scheduledEventsProfile) Set the scheduledEventsProfile property: Specifies Scheduled Event related configurations.withSecurityPostureReference(SecurityPostureReferenceUpdate securityPostureReference) Set the securityPostureReference property: The virtual machine scale set security posture reference.withSecurityProfile(SecurityProfile securityProfile) Set the securityProfile property: The virtual machine scale set Security profile.withStorageProfile(VirtualMachineScaleSetUpdateStorageProfile storageProfile) Set the storageProfile property: The virtual machine scale set storage profile.withUserData(String userData) Set the userData property: UserData for the VM, which must be base-64 encoded.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
-
VirtualMachineScaleSetUpdateVMProfile
public VirtualMachineScaleSetUpdateVMProfile()Creates an instance of VirtualMachineScaleSetUpdateVMProfile class.
-
-
Method Details
-
osProfile
Get the osProfile property: The virtual machine scale set OS profile.- Returns:
- the osProfile value.
-
withOsProfile
public VirtualMachineScaleSetUpdateVMProfile withOsProfile(VirtualMachineScaleSetUpdateOSProfile osProfile) Set the osProfile property: The virtual machine scale set OS profile.- Parameters:
osProfile- the osProfile value to set.- Returns:
- the VirtualMachineScaleSetUpdateVMProfile object itself.
-
storageProfile
Get the storageProfile property: The virtual machine scale set storage profile.- Returns:
- the storageProfile value.
-
withStorageProfile
public VirtualMachineScaleSetUpdateVMProfile withStorageProfile(VirtualMachineScaleSetUpdateStorageProfile storageProfile) Set the storageProfile property: The virtual machine scale set storage profile.- Parameters:
storageProfile- the storageProfile value to set.- Returns:
- the VirtualMachineScaleSetUpdateVMProfile object itself.
-
networkProfile
Get the networkProfile property: The virtual machine scale set network profile.- Returns:
- the networkProfile value.
-
withNetworkProfile
public VirtualMachineScaleSetUpdateVMProfile withNetworkProfile(VirtualMachineScaleSetUpdateNetworkProfile networkProfile) Set the networkProfile property: The virtual machine scale set network profile.- Parameters:
networkProfile- the networkProfile value to set.- Returns:
- the VirtualMachineScaleSetUpdateVMProfile object itself.
-
securityPostureReference
Get the securityPostureReference property: The virtual machine scale set security posture reference.- Returns:
- the securityPostureReference value.
-
withSecurityPostureReference
public VirtualMachineScaleSetUpdateVMProfile withSecurityPostureReference(SecurityPostureReferenceUpdate securityPostureReference) Set the securityPostureReference property: The virtual machine scale set security posture reference.- Parameters:
securityPostureReference- the securityPostureReference value to set.- Returns:
- the VirtualMachineScaleSetUpdateVMProfile object itself.
-
securityProfile
Get the securityProfile property: The virtual machine scale set Security profile.- Returns:
- the securityProfile value.
-
withSecurityProfile
Set the securityProfile property: The virtual machine scale set Security profile.- Parameters:
securityProfile- the securityProfile value to set.- Returns:
- the VirtualMachineScaleSetUpdateVMProfile object itself.
-
diagnosticsProfile
Get the diagnosticsProfile property: The virtual machine scale set diagnostics profile.- Returns:
- the diagnosticsProfile value.
-
withDiagnosticsProfile
public VirtualMachineScaleSetUpdateVMProfile withDiagnosticsProfile(DiagnosticsProfile diagnosticsProfile) Set the diagnosticsProfile property: The virtual machine scale set diagnostics profile.- Parameters:
diagnosticsProfile- the diagnosticsProfile value to set.- Returns:
- the VirtualMachineScaleSetUpdateVMProfile object itself.
-
extensionProfile
Get the extensionProfile property: The virtual machine scale set extension profile.- Returns:
- the extensionProfile value.
-
withExtensionProfile
public VirtualMachineScaleSetUpdateVMProfile withExtensionProfile(VirtualMachineScaleSetExtensionProfile extensionProfile) Set the extensionProfile property: The virtual machine scale set extension profile.- Parameters:
extensionProfile- the extensionProfile value to set.- Returns:
- the VirtualMachineScaleSetUpdateVMProfile object itself.
-
licenseType
Get the licenseType property: The license type, which is for bring your own license scenario.- Returns:
- the licenseType value.
-
withLicenseType
Set the licenseType property: The license type, which is for bring your own license scenario.- Parameters:
licenseType- the licenseType value to set.- Returns:
- the VirtualMachineScaleSetUpdateVMProfile object itself.
-
billingProfile
Get the billingProfile property: Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01.- Returns:
- the billingProfile value.
-
withBillingProfile
Set the billingProfile property: Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01.- Parameters:
billingProfile- the billingProfile value to set.- Returns:
- the VirtualMachineScaleSetUpdateVMProfile object itself.
-
scheduledEventsProfile
Get the scheduledEventsProfile property: Specifies Scheduled Event related configurations.- Returns:
- the scheduledEventsProfile value.
-
withScheduledEventsProfile
public VirtualMachineScaleSetUpdateVMProfile withScheduledEventsProfile(ScheduledEventsProfile scheduledEventsProfile) Set the scheduledEventsProfile property: Specifies Scheduled Event related configurations.- Parameters:
scheduledEventsProfile- the scheduledEventsProfile value to set.- Returns:
- the VirtualMachineScaleSetUpdateVMProfile object itself.
-
userData
Get the userData property: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. <br><br>Minimum api-version: 2021-03-01.- Returns:
- the userData value.
-
withUserData
Set the userData property: UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. <br><br>Minimum api-version: 2021-03-01.- Parameters:
userData- the userData value to set.- Returns:
- the VirtualMachineScaleSetUpdateVMProfile object itself.
-
hardwareProfile
Get the hardwareProfile property: Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01.- Returns:
- the hardwareProfile value.
-
withHardwareProfile
public VirtualMachineScaleSetUpdateVMProfile withHardwareProfile(VirtualMachineScaleSetHardwareProfile hardwareProfile) Set the hardwareProfile property: Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01.- Parameters:
hardwareProfile- the hardwareProfile value to set.- Returns:
- the VirtualMachineScaleSetUpdateVMProfile 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<VirtualMachineScaleSetUpdateVMProfile>- Throws:
IOException
-
fromJson
public static VirtualMachineScaleSetUpdateVMProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineScaleSetUpdateVMProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineScaleSetUpdateVMProfile 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 VirtualMachineScaleSetUpdateVMProfile.
-