public static final class SetRenewalRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
SetRenewalRequest |
build() |
SetRenewalRequest.Builder |
instanceIDs(String instanceIDs)
The ID of the instance.
|
SetRenewalRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
SetRenewalRequest.Builder |
productCode(String productCode)
The code of the service.
|
SetRenewalRequest.Builder |
productType(String productType)
The type of the service.
|
SetRenewalRequest.Builder |
renewalPeriod(Integer renewalPeriod)
The auto-renewal period.
|
SetRenewalRequest.Builder |
renewalPeriodUnit(String renewalPeriodUnit)
The unit of the auto-renewal period.
|
SetRenewalRequest.Builder |
renewalStatus(String renewalStatus)
The status of renewal.
|
SetRenewalRequest.Builder |
subscriptionType(String subscriptionType)
The billing method.
|
public SetRenewalRequest.Builder instanceIDs(String instanceIDs)
The ID of the instance. You can enable auto-renewal for up to 100 subscription instances at a time. Separate multiple instance IDs with commas (,).
This parameter is required.
example:rm-askjdhaskfjh
public SetRenewalRequest.Builder ownerId(Long ownerId)
public SetRenewalRequest.Builder productCode(String productCode)
The code of the service.
This parameter is required.
example:rds
public SetRenewalRequest.Builder productType(String productType)
The type of the service.
example:rds
public SetRenewalRequest.Builder renewalPeriod(Integer renewalPeriod)
The auto-renewal period. Valid values:
example:This parameter is required if the RenewalStatus parameter is set to AutoRenewal.
1
public SetRenewalRequest.Builder renewalPeriodUnit(String renewalPeriodUnit)
The unit of the auto-renewal period. Valid values:
example:This parameter is required if the RenewalStatus parameter is set to AutoRenewal.
M
public SetRenewalRequest.Builder renewalStatus(String renewalStatus)
The status of renewal. Valid values:
This parameter is required.
example:AutoRenewal
public SetRenewalRequest.Builder subscriptionType(String subscriptionType)
The billing method. Valid values:
PayAsYouGo
public SetRenewalRequest build()
Copyright © 2026. All rights reserved.