Skip to content

BandwidthPackage

This class encapsulates and extends the ROS resource type ALIYUN::GA::BandwidthPackage, which is used to create a bandwidth plan.

Initializers

import com.aliyun.ros.cdk.ga.BandwidthPackage;
BandwidthPackage.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
    .bandwidth(java.lang.Number)
    .bandwidth(IResolvable)
    .type(java.lang.String)
    .type(IResolvable)
//  .autoPay(java.lang.Boolean)
//  .autoPay(IResolvable)
//  .autoUseCoupon(java.lang.String)
//  .autoUseCoupon(IResolvable)
//  .bandwidthType(java.lang.String)
//  .bandwidthType(IResolvable)
//  .billingType(java.lang.String)
//  .billingType(IResolvable)
//  .cbnGeographicRegionIdA(java.lang.String)
//  .cbnGeographicRegionIdA(IResolvable)
//  .cbnGeographicRegionIdB(java.lang.String)
//  .cbnGeographicRegionIdB(IResolvable)
//  .chargeType(java.lang.String)
//  .chargeType(IResolvable)
//  .duration(java.lang.String)
//  .duration(IResolvable)
//  .pricingCycle(java.lang.String)
//  .pricingCycle(IResolvable)
//  .ratio(java.lang.String)
//  .ratio(IResolvable)
    .build();
Name Type Description
scope com.aliyun.ros.cdk.core.Construct No description.
id java.lang.String No description.
enableResourcePropertyConstraint java.lang.Boolean No description.
bandwidth java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property bandwidth: The bandwidth provided by the bandwidth plan.
type java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property type: The type of the bandwidth plan.
autoPay java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property autoPay: Specifies whether to enable automatic payment.
autoUseCoupon java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property autoUseCoupon: The AutoUseCoupon of the bandwidth.
bandwidthType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property bandwidthType: the bandwidth BandwidthType of the bandwidth.
billingType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property billingType: The BillingType of the bandwidth.
cbnGeographicRegionIdA java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property cbnGeographicRegionIdA: The CbnGeographicRegionIdA of the bandwidth.
cbnGeographicRegionIdB java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property cbnGeographicRegionIdB: The CbnGeographicRegionIdB of the bandwidth.
chargeType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property chargeType: The ChargeType of the bandwidth.
duration java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property duration:.
pricingCycle java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property pricingCycle:.
ratio java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ratio: The Ratio of the bandwidth.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

bandwidthRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property bandwidth: The bandwidth provided by the bandwidth plan.


typeRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property type: The type of the bandwidth plan.


autoPayOptional

  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property autoPay: Specifies whether to enable automatic payment.


autoUseCouponOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property autoUseCoupon: The AutoUseCoupon of the bandwidth.


bandwidthTypeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property bandwidthType: the bandwidth BandwidthType of the bandwidth.


billingTypeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property billingType: The BillingType of the bandwidth.


cbnGeographicRegionIdAOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property cbnGeographicRegionIdA: The CbnGeographicRegionIdA of the bandwidth.


cbnGeographicRegionIdBOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property cbnGeographicRegionIdB: The CbnGeographicRegionIdB of the bandwidth.


chargeTypeOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property chargeType: The ChargeType of the bandwidth.


durationOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property duration:.


pricingCycleOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property pricingCycle:.


ratioOptional

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property ratio: The Ratio of the bandwidth.


Methods

Name Description
toString Returns a string representation of this construct.
synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
addCondition No description.
addCount No description.
addDependency No description.
addResourceDesc No description.
applyRemovalPolicy No description.
getAtt No description.
setMetadata No description.

toString

public java.lang.String toString()

Returns a string representation of this construct.

synthesize

public void synthesize(ISynthesisSession session)

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • Type: java.lang.Object

Static Functions

Name Description
isConstruct Return whether the given object is a Construct.

isConstruct

import com.aliyun.ros.cdk.ga.BandwidthPackage;
BandwidthPackage.isConstruct(java.lang.Object x)

Return whether the given object is a Construct.

xRequired

  • Type: java.lang.Object

Properties

Name Type Description
node com.aliyun.ros.cdk.core.ConstructNode The construct tree node associated with this construct.
ref java.lang.String No description.
stack com.aliyun.ros.cdk.core.Stack The stack in which this resource is defined.
resource com.aliyun.ros.cdk.core.RosResource No description.
attrAutoPay com.aliyun.ros.cdk.core.IResolvable Attribute AutoPay: The AutoPay of the bandwidth.
attrAutoUseCoupon com.aliyun.ros.cdk.core.IResolvable Attribute AutoUseCoupon: The AutoUseCoupon of the bandwidth.
attrBandwidth com.aliyun.ros.cdk.core.IResolvable Attribute Bandwidth: The bandwidth provided by the bandwidth plan.
attrBandwidthPackageId com.aliyun.ros.cdk.core.IResolvable Attribute BandwidthPackageId: The Resource ID of the bandwidth.
attrBandwidthPackageName com.aliyun.ros.cdk.core.IResolvable Attribute BandwidthPackageName: The Resource name of the bandwidth.
attrBandwidthType com.aliyun.ros.cdk.core.IResolvable Attribute BandwidthType: the bandwidth BandwidthType of the bandwidth.
attrBillingType com.aliyun.ros.cdk.core.IResolvable Attribute BillingType: The BillingType of the bandwidth.
attrCbnGeographicRegionIdA com.aliyun.ros.cdk.core.IResolvable Attribute CbnGeographicRegionIdA: The CbnGeographicRegionIdA of the bandwidth.
attrCbnGeographicRegionIdB com.aliyun.ros.cdk.core.IResolvable Attribute CbnGeographicRegionIdB: The CbnGeographicRegionIdB of the bandwidth.
attrChargeType com.aliyun.ros.cdk.core.IResolvable Attribute ChargeType: The ChargeType of the bandwidth.
attrPaymentType com.aliyun.ros.cdk.core.IResolvable Attribute PaymentType: The Payment Type of the bandwidth.
attrRatio com.aliyun.ros.cdk.core.IResolvable Attribute Ratio: The Ratio of the bandwidth.
attrType com.aliyun.ros.cdk.core.IResolvable Attribute Type: The type of the bandwidth plan.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


refRequired

public java.lang.String getRef();
  • Type: java.lang.String

stackRequired

public Stack getStack();
  • Type: com.aliyun.ros.cdk.core.Stack

The stack in which this resource is defined.


resourceOptional

public RosResource getResource();
  • Type: com.aliyun.ros.cdk.core.RosResource

attrAutoPayRequired

public IResolvable getAttrAutoPay();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute AutoPay: The AutoPay of the bandwidth.


attrAutoUseCouponRequired

public IResolvable getAttrAutoUseCoupon();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute AutoUseCoupon: The AutoUseCoupon of the bandwidth.


attrBandwidthRequired

public IResolvable getAttrBandwidth();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Bandwidth: The bandwidth provided by the bandwidth plan.


attrBandwidthPackageIdRequired

public IResolvable getAttrBandwidthPackageId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute BandwidthPackageId: The Resource ID of the bandwidth.


attrBandwidthPackageNameRequired

public IResolvable getAttrBandwidthPackageName();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute BandwidthPackageName: The Resource name of the bandwidth.


attrBandwidthTypeRequired

public IResolvable getAttrBandwidthType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute BandwidthType: the bandwidth BandwidthType of the bandwidth.


attrBillingTypeRequired

public IResolvable getAttrBillingType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute BillingType: The BillingType of the bandwidth.


attrCbnGeographicRegionIdARequired

public IResolvable getAttrCbnGeographicRegionIdA();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute CbnGeographicRegionIdA: The CbnGeographicRegionIdA of the bandwidth.


attrCbnGeographicRegionIdBRequired

public IResolvable getAttrCbnGeographicRegionIdB();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute CbnGeographicRegionIdB: The CbnGeographicRegionIdB of the bandwidth.


attrChargeTypeRequired

public IResolvable getAttrChargeType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute ChargeType: The ChargeType of the bandwidth.


attrPaymentTypeRequired

public IResolvable getAttrPaymentType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute PaymentType: The Payment Type of the bandwidth.


attrRatioRequired

public IResolvable getAttrRatio();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Ratio: The Ratio of the bandwidth.


attrTypeRequired

public IResolvable getAttrType();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute Type: The type of the bandwidth plan.