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

294 строки
22 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.resourcemanager.billing.models.PatchModel"
fullName: "com.azure.resourcemanager.billing.models.PatchModel"
name: "PatchModel"
nameWithType: "PatchModel"
summary: "The request for reservation patch."
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 **PatchModel**</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.billing.models.PatchModel?alt=com.azure.resourcemanager.billing.models.PatchModel&text=PatchModel\" data-throw-if-not-resolved=\"False\" />&gt;"
constructors:
- uid: "com.azure.resourcemanager.billing.models.PatchModel.PatchModel()"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.PatchModel()"
name: "PatchModel()"
nameWithType: "PatchModel.PatchModel()"
summary: "Creates an instance of Patch<wbr>Model class."
syntax: "public PatchModel()"
desc: "Creates an instance of PatchModel class."
methods:
- uid: "com.azure.resourcemanager.billing.models.PatchModel.appliedScopeProperties()"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.appliedScopeProperties()"
name: "appliedScopeProperties()"
nameWithType: "PatchModel.appliedScopeProperties()"
summary: "Get the applied<wbr>Scope<wbr>Properties property: Properties specific to applied scope type."
syntax: "public ReservationAppliedScopeProperties appliedScopeProperties()"
desc: "Get the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup."
returns:
description: "the appliedScopeProperties value."
type: "<xref href=\"com.azure.resourcemanager.billing.models.ReservationAppliedScopeProperties?alt=com.azure.resourcemanager.billing.models.ReservationAppliedScopeProperties&text=ReservationAppliedScopeProperties\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.appliedScopeType()"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.appliedScopeType()"
name: "appliedScopeType()"
nameWithType: "PatchModel.appliedScopeType()"
summary: "Get the applied<wbr>Scope<wbr>Type property: Type of the Applied Scope."
syntax: "public AppliedScopeType appliedScopeType()"
desc: "Get the appliedScopeType property: Type of the Applied Scope."
returns:
description: "the appliedScopeType value."
type: "<xref href=\"com.azure.resourcemanager.billing.models.AppliedScopeType?alt=com.azure.resourcemanager.billing.models.AppliedScopeType&text=AppliedScopeType\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.displayName()"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.displayName()"
name: "displayName()"
nameWithType: "PatchModel.displayName()"
summary: "Get the display<wbr>Name property: Display name of the reservation."
syntax: "public String displayName()"
desc: "Get the displayName property: Display name of the reservation."
returns:
description: "the displayName value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "PatchModel.fromJson(JsonReader jsonReader)"
summary: "Reads an instance of Patch<wbr>Model 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 PatchModel fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while reading the PatchModel."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html\">IOException</a>"
desc: "Reads an instance of PatchModel from the JsonReader."
returns:
description: "An instance of PatchModel if the JsonReader was pointing to an instance of it, or null if it was pointing\n to JSON null."
type: "<xref href=\"com.azure.resourcemanager.billing.models.PatchModel?alt=com.azure.resourcemanager.billing.models.PatchModel&text=PatchModel\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.instanceFlexibility()"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.instanceFlexibility()"
name: "instanceFlexibility()"
nameWithType: "PatchModel.instanceFlexibility()"
summary: "Get the instance<wbr>Flexibility property: Turning this on will apply the reservation discount to other VMs in the same VM size group."
syntax: "public InstanceFlexibility instanceFlexibility()"
desc: "Get the instanceFlexibility property: Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type."
returns:
description: "the instanceFlexibility value."
type: "<xref href=\"com.azure.resourcemanager.billing.models.InstanceFlexibility?alt=com.azure.resourcemanager.billing.models.InstanceFlexibility&text=InstanceFlexibility\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.purchaseProperties()"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.purchaseProperties()"
name: "purchaseProperties()"
nameWithType: "PatchModel.purchaseProperties()"
summary: "Get the purchase<wbr>Properties property: The request for reservation purchase."
syntax: "public ReservationPurchaseRequest purchaseProperties()"
desc: "Get the purchaseProperties property: The request for reservation purchase."
returns:
description: "the purchaseProperties value."
type: "<xref href=\"com.azure.resourcemanager.billing.models.ReservationPurchaseRequest?alt=com.azure.resourcemanager.billing.models.ReservationPurchaseRequest&text=ReservationPurchaseRequest\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.renew()"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.renew()"
name: "renew()"
nameWithType: "PatchModel.renew()"
summary: "Get the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time."
syntax: "public Boolean renew()"
desc: "Get the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time."
returns:
description: "the renew value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html\">Boolean</a>"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.reviewDateTime()"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.reviewDateTime()"
name: "reviewDateTime()"
nameWithType: "PatchModel.reviewDateTime()"
summary: "Get the review<wbr>Date<wbr>Time property: This is the date-time when the Azure hybrid benefit needs to be reviewed."
syntax: "public OffsetDateTime reviewDateTime()"
desc: "Get the reviewDateTime property: This is the date-time when the Azure hybrid benefit needs to be reviewed."
returns:
description: "the reviewDateTime value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html\">OffsetDateTime</a>"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.sku()"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.sku()"
name: "sku()"
nameWithType: "PatchModel.sku()"
summary: "Get the sku property: The sku information associated to this reservation."
syntax: "public ReservationSkuProperty sku()"
desc: "Get the sku property: The sku information associated to this reservation."
returns:
description: "the sku value."
type: "<xref href=\"com.azure.resourcemanager.billing.models.ReservationSkuProperty?alt=com.azure.resourcemanager.billing.models.ReservationSkuProperty&text=ReservationSkuProperty\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.tags()"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.tags()"
name: "tags()"
nameWithType: "PatchModel.tags()"
summary: "Get the tags property: Tags for this reservation."
syntax: "public Map<String,String> tags()"
desc: "Get the tags property: Tags for this reservation."
returns:
description: "the tags value."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/Map.html\">Map</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>,<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>&gt;"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "PatchModel.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.billing.models.PatchModel.validate()"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.validate()"
name: "validate()"
nameWithType: "PatchModel.validate()"
summary: "Validates the instance."
syntax: "public void validate()"
desc: "Validates the instance."
- uid: "com.azure.resourcemanager.billing.models.PatchModel.withAppliedScopeProperties(com.azure.resourcemanager.billing.models.ReservationAppliedScopeProperties)"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.withAppliedScopeProperties(ReservationAppliedScopeProperties appliedScopeProperties)"
name: "withAppliedScopeProperties(ReservationAppliedScopeProperties appliedScopeProperties)"
nameWithType: "PatchModel.withAppliedScopeProperties(ReservationAppliedScopeProperties appliedScopeProperties)"
summary: "Set the applied<wbr>Scope<wbr>Properties property: Properties specific to applied scope type."
parameters:
- description: "the appliedScopeProperties value to set."
name: "appliedScopeProperties"
type: "<xref href=\"com.azure.resourcemanager.billing.models.ReservationAppliedScopeProperties?alt=com.azure.resourcemanager.billing.models.ReservationAppliedScopeProperties&text=ReservationAppliedScopeProperties\" data-throw-if-not-resolved=\"False\" />"
syntax: "public PatchModel withAppliedScopeProperties(ReservationAppliedScopeProperties appliedScopeProperties)"
desc: "Set the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup."
returns:
description: "the PatchModel object itself."
type: "<xref href=\"com.azure.resourcemanager.billing.models.PatchModel?alt=com.azure.resourcemanager.billing.models.PatchModel&text=PatchModel\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.withAppliedScopeType(com.azure.resourcemanager.billing.models.AppliedScopeType)"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.withAppliedScopeType(AppliedScopeType appliedScopeType)"
name: "withAppliedScopeType(AppliedScopeType appliedScopeType)"
nameWithType: "PatchModel.withAppliedScopeType(AppliedScopeType appliedScopeType)"
summary: "Set the applied<wbr>Scope<wbr>Type property: Type of the Applied Scope."
parameters:
- description: "the appliedScopeType value to set."
name: "appliedScopeType"
type: "<xref href=\"com.azure.resourcemanager.billing.models.AppliedScopeType?alt=com.azure.resourcemanager.billing.models.AppliedScopeType&text=AppliedScopeType\" data-throw-if-not-resolved=\"False\" />"
syntax: "public PatchModel withAppliedScopeType(AppliedScopeType appliedScopeType)"
desc: "Set the appliedScopeType property: Type of the Applied Scope."
returns:
description: "the PatchModel object itself."
type: "<xref href=\"com.azure.resourcemanager.billing.models.PatchModel?alt=com.azure.resourcemanager.billing.models.PatchModel&text=PatchModel\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.withDisplayName(java.lang.String)"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.withDisplayName(String displayName)"
name: "withDisplayName(String displayName)"
nameWithType: "PatchModel.withDisplayName(String displayName)"
summary: "Set the display<wbr>Name property: Display name of the reservation."
parameters:
- description: "the displayName value to set."
name: "displayName"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public PatchModel withDisplayName(String displayName)"
desc: "Set the displayName property: Display name of the reservation."
returns:
description: "the PatchModel object itself."
type: "<xref href=\"com.azure.resourcemanager.billing.models.PatchModel?alt=com.azure.resourcemanager.billing.models.PatchModel&text=PatchModel\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.withInstanceFlexibility(com.azure.resourcemanager.billing.models.InstanceFlexibility)"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.withInstanceFlexibility(InstanceFlexibility instanceFlexibility)"
name: "withInstanceFlexibility(InstanceFlexibility instanceFlexibility)"
nameWithType: "PatchModel.withInstanceFlexibility(InstanceFlexibility instanceFlexibility)"
summary: "Set the instance<wbr>Flexibility property: Turning this on will apply the reservation discount to other VMs in the same VM size group."
parameters:
- description: "the instanceFlexibility value to set."
name: "instanceFlexibility"
type: "<xref href=\"com.azure.resourcemanager.billing.models.InstanceFlexibility?alt=com.azure.resourcemanager.billing.models.InstanceFlexibility&text=InstanceFlexibility\" data-throw-if-not-resolved=\"False\" />"
syntax: "public PatchModel withInstanceFlexibility(InstanceFlexibility instanceFlexibility)"
desc: "Set the instanceFlexibility property: Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type."
returns:
description: "the PatchModel object itself."
type: "<xref href=\"com.azure.resourcemanager.billing.models.PatchModel?alt=com.azure.resourcemanager.billing.models.PatchModel&text=PatchModel\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.withPurchaseProperties(com.azure.resourcemanager.billing.models.ReservationPurchaseRequest)"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.withPurchaseProperties(ReservationPurchaseRequest purchaseProperties)"
name: "withPurchaseProperties(ReservationPurchaseRequest purchaseProperties)"
nameWithType: "PatchModel.withPurchaseProperties(ReservationPurchaseRequest purchaseProperties)"
summary: "Set the purchase<wbr>Properties property: The request for reservation purchase."
parameters:
- description: "the purchaseProperties value to set."
name: "purchaseProperties"
type: "<xref href=\"com.azure.resourcemanager.billing.models.ReservationPurchaseRequest?alt=com.azure.resourcemanager.billing.models.ReservationPurchaseRequest&text=ReservationPurchaseRequest\" data-throw-if-not-resolved=\"False\" />"
syntax: "public PatchModel withPurchaseProperties(ReservationPurchaseRequest purchaseProperties)"
desc: "Set the purchaseProperties property: The request for reservation purchase."
returns:
description: "the PatchModel object itself."
type: "<xref href=\"com.azure.resourcemanager.billing.models.PatchModel?alt=com.azure.resourcemanager.billing.models.PatchModel&text=PatchModel\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.withRenew(java.lang.Boolean)"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.withRenew(Boolean renew)"
name: "withRenew(Boolean renew)"
nameWithType: "PatchModel.withRenew(Boolean renew)"
summary: "Set the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time."
parameters:
- description: "the renew value to set."
name: "renew"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html\">Boolean</a>"
syntax: "public PatchModel withRenew(Boolean renew)"
desc: "Set the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time."
returns:
description: "the PatchModel object itself."
type: "<xref href=\"com.azure.resourcemanager.billing.models.PatchModel?alt=com.azure.resourcemanager.billing.models.PatchModel&text=PatchModel\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.withReviewDateTime(java.time.OffsetDateTime)"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.withReviewDateTime(OffsetDateTime reviewDateTime)"
name: "withReviewDateTime(OffsetDateTime reviewDateTime)"
nameWithType: "PatchModel.withReviewDateTime(OffsetDateTime reviewDateTime)"
summary: "Set the review<wbr>Date<wbr>Time property: This is the date-time when the Azure hybrid benefit needs to be reviewed."
parameters:
- description: "the reviewDateTime value to set."
name: "reviewDateTime"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html\">OffsetDateTime</a>"
syntax: "public PatchModel withReviewDateTime(OffsetDateTime reviewDateTime)"
desc: "Set the reviewDateTime property: This is the date-time when the Azure hybrid benefit needs to be reviewed."
returns:
description: "the PatchModel object itself."
type: "<xref href=\"com.azure.resourcemanager.billing.models.PatchModel?alt=com.azure.resourcemanager.billing.models.PatchModel&text=PatchModel\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.withSku(com.azure.resourcemanager.billing.models.ReservationSkuProperty)"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.withSku(ReservationSkuProperty sku)"
name: "withSku(ReservationSkuProperty sku)"
nameWithType: "PatchModel.withSku(ReservationSkuProperty sku)"
summary: "Set the sku property: The sku information associated to this reservation."
parameters:
- description: "the sku value to set."
name: "sku"
type: "<xref href=\"com.azure.resourcemanager.billing.models.ReservationSkuProperty?alt=com.azure.resourcemanager.billing.models.ReservationSkuProperty&text=ReservationSkuProperty\" data-throw-if-not-resolved=\"False\" />"
syntax: "public PatchModel withSku(ReservationSkuProperty sku)"
desc: "Set the sku property: The sku information associated to this reservation."
returns:
description: "the PatchModel object itself."
type: "<xref href=\"com.azure.resourcemanager.billing.models.PatchModel?alt=com.azure.resourcemanager.billing.models.PatchModel&text=PatchModel\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.resourcemanager.billing.models.PatchModel.withTags(java.util.Map<java.lang.String,java.lang.String>)"
fullName: "com.azure.resourcemanager.billing.models.PatchModel.withTags(Map<String,String> tags)"
name: "withTags(Map<String,String> tags)"
nameWithType: "PatchModel.withTags(Map<String,String> tags)"
summary: "Set the tags property: Tags for this reservation."
parameters:
- description: "the tags value to set."
name: "tags"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/Map.html\">Map</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>,<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>&gt;"
syntax: "public PatchModel withTags(Map<String,String> tags)"
desc: "Set the tags property: Tags for this reservation."
returns:
description: "the PatchModel object itself."
type: "<xref href=\"com.azure.resourcemanager.billing.models.PatchModel?alt=com.azure.resourcemanager.billing.models.PatchModel&text=PatchModel\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "The request for reservation patch."
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.billing.models.PatchModel?alt=com.azure.resourcemanager.billing.models.PatchModel&text=PatchModel\" data-throw-if-not-resolved=\"False\" />&gt;"
metadata: {}
package: "com.azure.resourcemanager.billing.models"
artifact: com.azure.resourcemanager:azure-resourcemanager-billing:1.0.0