CapacityReservationUpdate Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. UpdateResource - com.
azure. resourcemanager. compute. models. CapacityReservationUpdate
- com.
- com.
public final class CapacityReservationUpdate
extends UpdateResource
Specifies information about the capacity reservation. Only tags and sku.capacity can be updated.
Constructor | Description |
---|---|
Capacity |
Creates an instance of Capacity |
Modifier and Type | Method and Description |
---|---|
static
Capacity |
from Reads an instance of Capacity |
Capacity |
instance Get the instance |
Integer |
platform Get the platform |
String |
provisioning Get the provisioning |
Offset |
provisioning Get the provisioning |
String |
reservation Get the reservation |
Sku |
sku()
Get the sku property: SKU of the resource for which capacity needs be reserved. |
Offset |
time Get the time |
Json |
to |
void |
validate()
Validates the instance. |
List<Sub |
virtual Get the virtual |
Capacity |
with Set the sku property: SKU of the resource for which capacity needs be reserved. |
Capacity |
with Set the tags property: Resource tags. |
Methods inherited from UpdateResource
Methods inherited from java.lang.Object
CapacityReservationUpdate
public CapacityReservationUpdate()
Creates an instance of CapacityReservationUpdate class.
fromJson
public static CapacityReservationUpdate fromJson(JsonReader jsonReader)
Reads an instance of CapacityReservationUpdate from the JsonReader.
Parameters:
Returns:
Throws:
instanceView
public CapacityReservationInstanceView instanceView()
Get the instanceView property: The Capacity reservation instance view.
Returns:
platformFaultDomainCount
public Integer platformFaultDomainCount()
Get the platformFaultDomainCount property: Specifies the value of fault domain count that Capacity Reservation supports for requested VM size. **Note:** The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation. Minimum api-version: 2022-08-01.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state, which only appears in the response.
Returns:
provisioningTime
public OffsetDateTime provisioningTime()
Get the provisioningTime property: The date time when the capacity reservation was last updated.
Returns:
reservationId
public String reservationId()
Get the reservationId property: A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.
Returns:
sku
public Sku sku()
Get the sku property: SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values.
Returns:
timeCreated
public OffsetDateTime timeCreated()
Get the timeCreated property: Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
CapacityReservationUpdate.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
CapacityReservationUpdate.validate()virtualMachinesAssociated
public List
Get the virtualMachinesAssociated property: A list of all virtual machine resource ids that are associated with the capacity reservation.
Returns:
withSku
public CapacityReservationUpdate withSku(Sku sku)
Set the sku property: SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values.
Parameters:
Returns:
withTags
public CapacityReservationUpdate withTags(Map
Set the tags property: Resource tags.
Overrides:
CapacityReservationUpdate.withTags(Map<String,String> tags)Parameters:
Azure SDK for Java-feedback
Azure SDK for Java is een open source project. Selecteer een koppeling om feedback te geven: