azure-docs-sdk-java/docs-ref-autogen/com.azure.resourcemanager.c...

126 строки
10 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.compute.models.VMSizeProperties"
fullName: "com.azure.resourcemanager.compute.models.VMSizeProperties"
name: "VMSizeProperties"
nameWithType: "VMSizeProperties"
summary: "Specifies VM Size Property settings on the virtual machine."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **VMSizeProperties**</br> implements <xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.compute.models.VMSizeProperties?alt=com.azure.resourcemanager.compute.models.VMSizeProperties&text=VMSizeProperties\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.resourcemanager.compute.models.VMSizeProperties.VMSizeProperties()"
fullName: "com.azure.resourcemanager.compute.models.VMSizeProperties.VMSizeProperties()"
name: "VMSizeProperties()"
nameWithType: "VMSizeProperties.VMSizeProperties()"
summary: "Creates an instance of VMSize<wbr>Properties class."
syntax: "public VMSizeProperties()"
desc: "Creates an instance of VMSizeProperties class."
methods:
- uid: "com.azure.resourcemanager.compute.models.VMSizeProperties.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.compute.models.VMSizeProperties.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "VMSizeProperties.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of VMSize<wbr>Properties from the Json<wbr>Reader."
modifiers:
- "static"
parameters:
- description: "The JsonReader being read."
name: "jsonReader"
type: "<xref href=\"com.azure.json.JsonReader?alt=com.azure.json.JsonReader&text=JsonReader\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static VMSizeProperties fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the VMSizeProperties."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads an instance of VMSizeProperties from the JsonReader."
returns:
description: "An instance of VMSizeProperties if the JsonReader was pointing to an instance of it, or null if it was\n pointing to JSON null."
type: "<xref href=\"com.azure.resourcemanager.compute.models.VMSizeProperties?alt=com.azure.resourcemanager.compute.models.VMSizeProperties&text=VMSizeProperties\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.VMSizeProperties.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.compute.models.VMSizeProperties.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "VMSizeProperties.toJson(JsonWriter jsonWriter)"
parameters:
- name: "jsonWriter"
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
returns:
type: "<xref href=\"com.azure.json.JsonWriter?alt=com.azure.json.JsonWriter&text=JsonWriter\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.VMSizeProperties.vCpusAvailable()"
fullName: "com.azure.resourcemanager.compute.models.VMSizeProperties.vCpusAvailable()"
name: "vCpusAvailable()"
nameWithType: "VMSizeProperties.vCpusAvailable()"
summary: "Get the v<wbr>Cpus<wbr>Available property: Specifies the number of v<wbr>CPUs available for the VM."
syntax: "public Integer vCpusAvailable()"
desc: "Get the vCpusAvailable property: Specifies the number of vCPUs available for the VM. When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of \\[List all available virtual machine sizes in a region\\](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list)."
returns:
description: "the vCpusAvailable value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
- uid: "com.azure.resourcemanager.compute.models.VMSizeProperties.vCpusPerCore()"
fullName: "com.azure.resourcemanager.compute.models.VMSizeProperties.vCpusPerCore()"
name: "vCpusPerCore()"
nameWithType: "VMSizeProperties.vCpusPerCore()"
summary: "Get the v<wbr>Cpus<wbr>Per<wbr>Core property: Specifies the vCPU to physical core ratio."
syntax: "public Integer vCpusPerCore()"
desc: "Get the vCpusPerCore property: Specifies the vCPU to physical core ratio. When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of \\[List all available virtual machine sizes in a region\\](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). \\*\\*Setting this property to 1 also means that hyper-threading is disabled.\\*\\*."
returns:
description: "the vCpusPerCore value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
- uid: "com.azure.resourcemanager.compute.models.VMSizeProperties.validate()"
fullName: "com.azure.resourcemanager.compute.models.VMSizeProperties.validate()"
name: "validate()"
nameWithType: "VMSizeProperties.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.compute.models.VMSizeProperties.withVCpusAvailable(java.lang.Integer)"
fullName: "com.azure.resourcemanager.compute.models.VMSizeProperties.withVCpusAvailable(Integer vCpusAvailable)"
name: "withVCpusAvailable(Integer vCpusAvailable)"
nameWithType: "VMSizeProperties.withVCpusAvailable(Integer vCpusAvailable)"
summary: "Set the v<wbr>Cpus<wbr>Available property: Specifies the number of v<wbr>CPUs available for the VM."
parameters:
- description: "the vCpusAvailable value to set."
name: "vCpusAvailable"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
syntax: "public VMSizeProperties withVCpusAvailable(Integer vCpusAvailable)"
desc: "Set the vCpusAvailable property: Specifies the number of vCPUs available for the VM. When this property is not specified in the request body the default behavior is to set it to the value of vCPUs available for that VM size exposed in api response of \\[List all available virtual machine sizes in a region\\](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list)."
returns:
description: "the VMSizeProperties object itself."
type: "<xref href=\"com.azure.resourcemanager.compute.models.VMSizeProperties?alt=com.azure.resourcemanager.compute.models.VMSizeProperties&text=VMSizeProperties\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.VMSizeProperties.withVCpusPerCore(java.lang.Integer)"
fullName: "com.azure.resourcemanager.compute.models.VMSizeProperties.withVCpusPerCore(Integer vCpusPerCore)"
name: "withVCpusPerCore(Integer vCpusPerCore)"
nameWithType: "VMSizeProperties.withVCpusPerCore(Integer vCpusPerCore)"
summary: "Set the v<wbr>Cpus<wbr>Per<wbr>Core property: Specifies the vCPU to physical core ratio."
parameters:
- description: "the vCpusPerCore value to set."
name: "vCpusPerCore"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html\">Integer</a>"
syntax: "public VMSizeProperties withVCpusPerCore(Integer vCpusPerCore)"
desc: "Set the vCpusPerCore property: Specifies the vCPU to physical core ratio. When this property is not specified in the request body the default behavior is set to the value of vCPUsPerCore for the VM Size exposed in api response of \\[List all available virtual machine sizes in a region\\](https://docs.microsoft.com/en-us/rest/api/compute/resource-skus/list). \\*\\*Setting this property to 1 also means that hyper-threading is disabled.\\*\\*."
returns:
description: "the VMSizeProperties object itself."
type: "<xref href=\"com.azure.resourcemanager.compute.models.VMSizeProperties?alt=com.azure.resourcemanager.compute.models.VMSizeProperties&text=VMSizeProperties\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Specifies VM Size Property settings on the virtual machine."
implements:
- "<xref href=\"com.azure.json.JsonSerializable?alt=com.azure.json.JsonSerializable&text=JsonSerializable\" data-throw-if-not-resolved=\"False\" />&lt;<xref href=\"com.azure.resourcemanager.compute.models.VMSizeProperties?alt=com.azure.resourcemanager.compute.models.VMSizeProperties&text=VMSizeProperties\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.resourcemanager.compute.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-compute:2.42.0