Class DedicatedHostGroupProperties
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.DedicatedHostGroupProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DedicatedHostGroupProperties>
public final class DedicatedHostGroupProperties
extends Object
implements com.azure.json.JsonSerializable<DedicatedHostGroupProperties>
Dedicated Host Group Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of DedicatedHostGroupProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalCapabilities property: Enables or disables a capability on the dedicated host group.static DedicatedHostGroupPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DedicatedHostGroupProperties from the JsonReader.hosts()Get the hosts property: A list of references to all dedicated hosts in the dedicated host group.Get the instanceView property: The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group.intGet the platformFaultDomainCount property: Number of fault domains that the host group can span.Get the supportAutomaticPlacement property: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdditionalCapabilities(DedicatedHostGroupPropertiesAdditionalCapabilities additionalCapabilities) Set the additionalCapabilities property: Enables or disables a capability on the dedicated host group.withPlatformFaultDomainCount(int platformFaultDomainCount) Set the platformFaultDomainCount property: Number of fault domains that the host group can span.withSupportAutomaticPlacement(Boolean supportAutomaticPlacement) Set the supportAutomaticPlacement property: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group.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
-
DedicatedHostGroupProperties
public DedicatedHostGroupProperties()Creates an instance of DedicatedHostGroupProperties class.
-
-
Method Details
-
platformFaultDomainCount
public int platformFaultDomainCount()Get the platformFaultDomainCount property: Number of fault domains that the host group can span.- Returns:
- the platformFaultDomainCount value.
-
withPlatformFaultDomainCount
Set the platformFaultDomainCount property: Number of fault domains that the host group can span.- Parameters:
platformFaultDomainCount- the platformFaultDomainCount value to set.- Returns:
- the DedicatedHostGroupProperties object itself.
-
hosts
Get the hosts property: A list of references to all dedicated hosts in the dedicated host group.- Returns:
- the hosts value.
-
instanceView
Get the instanceView property: The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group.- Returns:
- the instanceView value.
-
supportAutomaticPlacement
Get the supportAutomaticPlacement property: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. Minimum api-version: 2020-06-01.- Returns:
- the supportAutomaticPlacement value.
-
withSupportAutomaticPlacement
public DedicatedHostGroupProperties withSupportAutomaticPlacement(Boolean supportAutomaticPlacement) Set the supportAutomaticPlacement property: Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. Minimum api-version: 2020-06-01.- Parameters:
supportAutomaticPlacement- the supportAutomaticPlacement value to set.- Returns:
- the DedicatedHostGroupProperties object itself.
-
additionalCapabilities
Get the additionalCapabilities property: Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01.- Returns:
- the additionalCapabilities value.
-
withAdditionalCapabilities
public DedicatedHostGroupProperties withAdditionalCapabilities(DedicatedHostGroupPropertiesAdditionalCapabilities additionalCapabilities) Set the additionalCapabilities property: Enables or disables a capability on the dedicated host group. Minimum api-version: 2022-03-01.- Parameters:
additionalCapabilities- the additionalCapabilities value to set.- Returns:
- the DedicatedHostGroupProperties 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<DedicatedHostGroupProperties>- Throws:
IOException
-
fromJson
public static DedicatedHostGroupProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DedicatedHostGroupProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DedicatedHostGroupProperties 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 DedicatedHostGroupProperties.
-