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

150 строки
9.5 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.compute.models.Sku"
fullName: "com.azure.resourcemanager.compute.models.Sku"
name: "Sku"
nameWithType: "Sku"
summary: "Describes a virtual machine scale set sku."
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 **Sku**</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.Sku?alt=com.azure.resourcemanager.compute.models.Sku&text=Sku\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.resourcemanager.compute.models.Sku.Sku()"
fullName: "com.azure.resourcemanager.compute.models.Sku.Sku()"
name: "Sku()"
nameWithType: "Sku.Sku()"
summary: "Creates an instance of Sku class."
syntax: "public Sku()"
desc: "Creates an instance of Sku class."
methods:
- uid: "com.azure.resourcemanager.compute.models.Sku.capacity()"
fullName: "com.azure.resourcemanager.compute.models.Sku.capacity()"
name: "capacity()"
nameWithType: "Sku.capacity()"
summary: "Get the capacity property: Specifies the number of virtual machines in the scale set."
syntax: "public Long capacity()"
desc: "Get the capacity property: Specifies the number of virtual machines in the scale set."
returns:
description: "the capacity value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html\">Long</a>"
- uid: "com.azure.resourcemanager.compute.models.Sku.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.compute.models.Sku.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "Sku.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of Sku 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 Sku fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the Sku."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads an instance of Sku from the JsonReader."
returns:
description: "An instance of Sku if the JsonReader was pointing to an instance of it, or null if it was pointing to\n JSON null."
type: "<xref href=\"com.azure.resourcemanager.compute.models.Sku?alt=com.azure.resourcemanager.compute.models.Sku&text=Sku\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Sku.name()"
fullName: "com.azure.resourcemanager.compute.models.Sku.name()"
name: "name()"
nameWithType: "Sku.name()"
summary: "Get the name property: The sku name."
syntax: "public String name()"
desc: "Get the name property: The sku name."
returns:
description: "the name value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.compute.models.Sku.tier()"
fullName: "com.azure.resourcemanager.compute.models.Sku.tier()"
name: "tier()"
nameWithType: "Sku.tier()"
summary: "Get the tier property: Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> \\*\\*Standard\\*\\*<br /><br /> \\*\\*Basic\\*\\*."
syntax: "public String tier()"
desc: "Get the tier property: Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> \\*\\*Standard\\*\\*<br /><br /> \\*\\*Basic\\*\\*."
returns:
description: "the tier value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.compute.models.Sku.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.compute.models.Sku.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "Sku.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.Sku.validate()"
fullName: "com.azure.resourcemanager.compute.models.Sku.validate()"
name: "validate()"
nameWithType: "Sku.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.compute.models.Sku.withCapacity(java.lang.Long)"
fullName: "com.azure.resourcemanager.compute.models.Sku.withCapacity(Long capacity)"
name: "withCapacity(Long capacity)"
nameWithType: "Sku.withCapacity(Long capacity)"
summary: "Set the capacity property: Specifies the number of virtual machines in the scale set."
parameters:
- description: "the capacity value to set."
name: "capacity"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html\">Long</a>"
syntax: "public Sku withCapacity(Long capacity)"
desc: "Set the capacity property: Specifies the number of virtual machines in the scale set."
returns:
description: "the Sku object itself."
type: "<xref href=\"com.azure.resourcemanager.compute.models.Sku?alt=com.azure.resourcemanager.compute.models.Sku&text=Sku\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Sku.withName(java.lang.String)"
fullName: "com.azure.resourcemanager.compute.models.Sku.withName(String name)"
name: "withName(String name)"
nameWithType: "Sku.withName(String name)"
summary: "Set the name property: The sku name."
parameters:
- description: "the name value to set."
name: "name"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public Sku withName(String name)"
desc: "Set the name property: The sku name."
returns:
description: "the Sku object itself."
type: "<xref href=\"com.azure.resourcemanager.compute.models.Sku?alt=com.azure.resourcemanager.compute.models.Sku&text=Sku\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.compute.models.Sku.withTier(java.lang.String)"
fullName: "com.azure.resourcemanager.compute.models.Sku.withTier(String tier)"
name: "withTier(String tier)"
nameWithType: "Sku.withTier(String tier)"
summary: "Set the tier property: Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> \\*\\*Standard\\*\\*<br /><br /> \\*\\*Basic\\*\\*."
parameters:
- description: "the tier value to set."
name: "tier"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public Sku withTier(String tier)"
desc: "Set the tier property: Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> \\*\\*Standard\\*\\*<br /><br /> \\*\\*Basic\\*\\*."
returns:
description: "the Sku object itself."
type: "<xref href=\"com.azure.resourcemanager.compute.models.Sku?alt=com.azure.resourcemanager.compute.models.Sku&text=Sku\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Describes a virtual machine scale set sku. NOTE: If the new VM SKU is not supported on the hardware the scale set is currently on, you need to deallocate the VMs in the scale set before you modify the SKU name."
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.Sku?alt=com.azure.resourcemanager.compute.models.Sku&text=Sku\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.resourcemanager.compute.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-compute:2.42.0