Skip to content

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)
//  .autoRenew(java.lang.Boolean)
//  .autoRenew(IResolvable)
//  .autoRenewPeriod(java.lang.Number)
//  .autoRenewPeriod(IResolvable)
//  .autoRenewPeriodUnit(java.lang.String)
//  .autoRenewPeriodUnit(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.
autoRenew java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property autoRenew: Whether to automatically renew the resource package.
autoRenewPeriod java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property autoRenewPeriod: Duration of resource packs renewals.
autoRenewPeriodUnit java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property autoRenewPeriodUnit: Unit of resource pack renewals.
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.

durationRequired

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.


packageTypeRequired

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.


productCodeRequired

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.


specificationRequired

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.


autoRenewOptional

public java.lang.Object getAutoRenew();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property autoRenew: Whether to automatically renew the resource package.

The value is true or false. Default value: false.


autoRenewPeriodOptional

public java.lang.Object getAutoRenewPeriod();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property autoRenewPeriod: Duration of resource packs renewals.

Valid values:

  • When AutoRenewPeriodUnit is Year: 1, 2, 3.
  • When AutoRenewPeriodUnit is Month: 1, 2, 3, 6. Default is 1.

autoRenewPeriodUnitOptional

public java.lang.Object getAutoRenewPeriodUnit();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property autoRenewPeriodUnit: Unit of resource pack renewals.

Valid values: Month, Year. Default is Month.


effectiveDateOptional

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


pricingCycleOptional

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