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.
fetchCondition No description.
fetchDependency No description.
fetchResourceDesc 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

fetchCondition

public RosCondition fetchCondition()

fetchDependency

public java.util.List<java.lang.String> fetchDependency()

fetchResourceDesc

public java.lang.String fetchResourceDesc()

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.
env com.aliyun.ros.cdk.core.IResourceEnvironment The environment this resource belongs to.
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 java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute AutoPay: The AutoPay of the bandwidth.
attrAutoUseCoupon java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute AutoUseCoupon: The AutoUseCoupon of the bandwidth.
attrBandwidth java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Bandwidth: The bandwidth provided by the bandwidth plan.
attrBandwidthPackageId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute BandwidthPackageId: The Resource ID of the bandwidth.
attrBandwidthPackageName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute BandwidthPackageName: The Resource name of the bandwidth.
attrBandwidthType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute BandwidthType: the bandwidth BandwidthType of the bandwidth.
attrBillingType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute BillingType: The BillingType of the bandwidth.
attrCbnGeographicRegionIdA java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute CbnGeographicRegionIdA: The CbnGeographicRegionIdA of the bandwidth.
attrCbnGeographicRegionIdB java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute CbnGeographicRegionIdB: The CbnGeographicRegionIdB of the bandwidth.
attrChargeType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute ChargeType: The ChargeType of the bandwidth.
attrPaymentType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute PaymentType: The Payment Type of the bandwidth.
attrRatio java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Ratio: The Ratio of the bandwidth.
attrType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Attribute Type: The type of the bandwidth plan.
props BandwidthPackageProps No description.

nodeRequired

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

The construct tree node associated with this construct.


envRequired

public IResourceEnvironment getEnv();
  • Type: com.aliyun.ros.cdk.core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


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 java.lang.Object getAttrAutoPay();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Attribute AutoPay: The AutoPay of the bandwidth.


attrAutoUseCouponRequired

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

Attribute AutoUseCoupon: The AutoUseCoupon of the bandwidth.


attrBandwidthRequired

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

Attribute Bandwidth: The bandwidth provided by the bandwidth plan.


attrBandwidthPackageIdRequired

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

Attribute BandwidthPackageId: The Resource ID of the bandwidth.


attrBandwidthPackageNameRequired

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

Attribute BandwidthPackageName: The Resource name of the bandwidth.


attrBandwidthTypeRequired

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

Attribute BandwidthType: the bandwidth BandwidthType of the bandwidth.


attrBillingTypeRequired

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

Attribute BillingType: The BillingType of the bandwidth.


attrCbnGeographicRegionIdARequired

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

Attribute CbnGeographicRegionIdA: The CbnGeographicRegionIdA of the bandwidth.


attrCbnGeographicRegionIdBRequired

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

Attribute CbnGeographicRegionIdB: The CbnGeographicRegionIdB of the bandwidth.


attrChargeTypeRequired

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

Attribute ChargeType: The ChargeType of the bandwidth.


attrPaymentTypeRequired

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

Attribute PaymentType: The Payment Type of the bandwidth.


attrRatioRequired

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

Attribute Ratio: The Ratio of the bandwidth.


attrTypeRequired

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

Attribute Type: The type of the bandwidth plan.


propsRequired

public BandwidthPackageProps getProps();