ResourcePackageProps
Properties for defining a ResourcePackage
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-bss-resourcepackage
Initializer
import com.aliyun.ros.cdk.bss.ResourcePackageProps;
ResourcePackageProps.builder()
.duration(java.lang.Number)
.duration(IResolvable)
.packageType(java.lang.String)
.packageType(IResolvable)
.productCode(java.lang.String)
.productCode(IResolvable)
.specification(java.lang.String)
.specification(IResolvable)
// .effectiveDate(java.lang.String)
// .effectiveDate(IResolvable)
// .pricingCycle(java.lang.String)
// .pricingCycle(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
duration |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property duration: The validity of the specified resource package. |
packageType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property packageType: The type of the specified resource package. |
productCode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property productCode: The code of the specified product. |
specification |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property specification: The size of the specified resource package. |
effectiveDate |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property effectiveDate: The effective date of the specified resource package. |
pricingCycle |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property pricingCycle: The validity of the specified resource package. |
duration
Required
public java.lang.Object getDuration();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property duration: The validity of the specified resource package.
The value is the same as the Value of AvailableDuration returned by DescribeResourcePackageProduct.
packageType
Required
public java.lang.Object getPackageType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property packageType: The type of the specified resource package.
The value is the same as the value of the Code value of the ResourcePackage object returned by DescribeResourcePackageProduct.
productCode
Required
public java.lang.Object getProductCode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property productCode: The code of the specified product.
The value is the same as the value of ProductType returned by QueryProductList.
specification
Required
public java.lang.Object getSpecification();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property specification: The size of the specified resource package.
The value is the same as the Value of Specification returned by DescribeResourcePackageProduct.
effectiveDate
Optional
public java.lang.Object getEffectiveDate();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property effectiveDate: The effective date of the specified resource package.
The resource package will take effect immediately if the effective date is unspecified. The date format follows the ISO8601 standard and uses UTC time. Format: yyyy-MM-ddTHH:mm:ssZ
pricingCycle
Optional
public java.lang.Object getPricingCycle();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property pricingCycle: The validity of the specified resource package.
Default value: Month. Valid values: Month, Year