public static final class ReleaseInstanceRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ReleaseInstanceRequest |
build() |
ReleaseInstanceRequest.Builder |
instanceIds(String instanceIds)
The ID of the instance.
|
ReleaseInstanceRequest.Builder |
ownerId(Long ownerId)
This parameter is required.
|
ReleaseInstanceRequest.Builder |
productCode(String productCode)
The code of the service.
|
ReleaseInstanceRequest.Builder |
productType(String productType)
The type of the service.
|
ReleaseInstanceRequest.Builder |
region(String region)
The region in which the instance resides.
|
ReleaseInstanceRequest.Builder |
renewStatus(String renewStatus)
The method that is used to renew the instance.
|
ReleaseInstanceRequest.Builder |
subscriptionType(String subscriptionType)
The billing method.
|
public ReleaseInstanceRequest.Builder instanceIds(String instanceIds)
The ID of the instance. Separate multiple IDs with commas (,). A maximum of 100 IDs can be specified.
This parameter is required.
example:rm-xxxxxxxxxxxx
public ReleaseInstanceRequest.Builder ownerId(Long ownerId)
This parameter is required.
public ReleaseInstanceRequest.Builder productCode(String productCode)
The code of the service.
This parameter is required.
example:ecs
public ReleaseInstanceRequest.Builder productType(String productType)
The type of the service.
example:ecs
public ReleaseInstanceRequest.Builder region(String region)
The region in which the instance resides.
example:cn-hangzhou
public ReleaseInstanceRequest.Builder renewStatus(String renewStatus)
The method that is used to renew the instance. Valid values:
AutoRenewal: automatically renews the instance.
ManualRenewal: manually renews the instance.
NotRenewal: does not renew the instance.
example:AutoRenewal
public ReleaseInstanceRequest.Builder subscriptionType(String subscriptionType)
The billing method. Valid values:
Subscription: the subscription billing method.
PayAsYouGo: the pay-as-you-go billing method.
This parameter is required.
example:PayAsYouGo
public ReleaseInstanceRequest build()
Copyright © 2026. All rights reserved.