All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.alicloud.cen.BandwidthPackageArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.alicloud.cen;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class BandwidthPackageArgs extends com.pulumi.resources.ResourceArgs {

    public static final BandwidthPackageArgs Empty = new BandwidthPackageArgs();

    /**
     * The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
     * 
     */
    @Import(name="bandwidth", required=true)
    private Output bandwidth;

    /**
     * @return The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
     * 
     */
    public Output bandwidth() {
        return this.bandwidth;
    }

    /**
     * The name of the bandwidth package. Defaults to null.
     * 
     * ->**NOTE:** PrePaid mode will deduct fees from the account directly and the bandwidth package can't be deleted before expired time.
     * 
     * ->**NOTE:** The PostPaid mode is only for test. Please open a ticket if you need.
     * 
     */
    @Import(name="cenBandwidthPackageName")
    private @Nullable Output cenBandwidthPackageName;

    /**
     * @return The name of the bandwidth package. Defaults to null.
     * 
     * ->**NOTE:** PrePaid mode will deduct fees from the account directly and the bandwidth package can't be deleted before expired time.
     * 
     * ->**NOTE:** The PostPaid mode is only for test. Please open a ticket if you need.
     * 
     */
    public Optional> cenBandwidthPackageName() {
        return Optional.ofNullable(this.cenBandwidthPackageName);
    }

    /**
     * Field `charge_type` has been deprecated from version 1.97.0. Use `payment_type` and instead.
     * 
     * @deprecated
     * Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.
     * 
     */
    @Deprecated /* Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead. */
    @Import(name="chargeType")
    private @Nullable Output chargeType;

    /**
     * @return Field `charge_type` has been deprecated from version 1.97.0. Use `payment_type` and instead.
     * 
     * @deprecated
     * Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.
     * 
     */
    @Deprecated /* Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead. */
    public Optional> chargeType() {
        return Optional.ofNullable(this.chargeType);
    }

    /**
     * The description of the bandwidth package. Default to null.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the bandwidth package. Default to null.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The area A to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
     * 
     */
    @Import(name="geographicRegionAId")
    private @Nullable Output geographicRegionAId;

    /**
     * @return The area A to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
     * 
     */
    public Optional> geographicRegionAId() {
        return Optional.ofNullable(this.geographicRegionAId);
    }

    /**
     * The area B to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
     * 
     */
    @Import(name="geographicRegionBId")
    private @Nullable Output geographicRegionBId;

    /**
     * @return The area B to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
     * 
     */
    public Optional> geographicRegionBId() {
        return Optional.ofNullable(this.geographicRegionBId);
    }

    /**
     * Field `geographic_region_ids` has been deprecated from version 1.97.0. Use `geographic_region_a_id` and `geographic_region_b_id` instead.
     * 
     * @deprecated
     * Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.
     * 
     */
    @Deprecated /* Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead. */
    @Import(name="geographicRegionIds")
    private @Nullable Output> geographicRegionIds;

    /**
     * @return Field `geographic_region_ids` has been deprecated from version 1.97.0. Use `geographic_region_a_id` and `geographic_region_b_id` instead.
     * 
     * @deprecated
     * Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.
     * 
     */
    @Deprecated /* Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead. */
    public Optional>> geographicRegionIds() {
        return Optional.ofNullable(this.geographicRegionIds);
    }

    /**
     * Field `name` has been deprecated from version 1.97.0. Use `cen_bandwidth_package_name` and instead.
     * 
     * @deprecated
     * Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.
     * 
     */
    @Deprecated /* Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead. */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Field `name` has been deprecated from version 1.97.0. Use `cen_bandwidth_package_name` and instead.
     * 
     * @deprecated
     * Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.
     * 
     */
    @Deprecated /* Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead. */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The billing method. Valid value: `PostPaid` | `PrePaid`. Default to `PrePaid`. If set to PrePaid, the bandwidth package can't be deleted before expired time.
     * 
     */
    @Import(name="paymentType")
    private @Nullable Output paymentType;

    /**
     * @return The billing method. Valid value: `PostPaid` | `PrePaid`. Default to `PrePaid`. If set to PrePaid, the bandwidth package can't be deleted before expired time.
     * 
     */
    public Optional> paymentType() {
        return Optional.ofNullable(this.paymentType);
    }

    /**
     * The purchase period in month. Valid value: `1`, `2`, `3`, `6`, `12`.
     * > **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
     * 
     */
    @Import(name="period")
    private @Nullable Output period;

    /**
     * @return The purchase period in month. Valid value: `1`, `2`, `3`, `6`, `12`.
     * > **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
     * 
     */
    public Optional> period() {
        return Optional.ofNullable(this.period);
    }

    private BandwidthPackageArgs() {}

    private BandwidthPackageArgs(BandwidthPackageArgs $) {
        this.bandwidth = $.bandwidth;
        this.cenBandwidthPackageName = $.cenBandwidthPackageName;
        this.chargeType = $.chargeType;
        this.description = $.description;
        this.geographicRegionAId = $.geographicRegionAId;
        this.geographicRegionBId = $.geographicRegionBId;
        this.geographicRegionIds = $.geographicRegionIds;
        this.name = $.name;
        this.paymentType = $.paymentType;
        this.period = $.period;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(BandwidthPackageArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private BandwidthPackageArgs $;

        public Builder() {
            $ = new BandwidthPackageArgs();
        }

        public Builder(BandwidthPackageArgs defaults) {
            $ = new BandwidthPackageArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param bandwidth The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
         * 
         * @return builder
         * 
         */
        public Builder bandwidth(Output bandwidth) {
            $.bandwidth = bandwidth;
            return this;
        }

        /**
         * @param bandwidth The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
         * 
         * @return builder
         * 
         */
        public Builder bandwidth(Integer bandwidth) {
            return bandwidth(Output.of(bandwidth));
        }

        /**
         * @param cenBandwidthPackageName The name of the bandwidth package. Defaults to null.
         * 
         * ->**NOTE:** PrePaid mode will deduct fees from the account directly and the bandwidth package can't be deleted before expired time.
         * 
         * ->**NOTE:** The PostPaid mode is only for test. Please open a ticket if you need.
         * 
         * @return builder
         * 
         */
        public Builder cenBandwidthPackageName(@Nullable Output cenBandwidthPackageName) {
            $.cenBandwidthPackageName = cenBandwidthPackageName;
            return this;
        }

        /**
         * @param cenBandwidthPackageName The name of the bandwidth package. Defaults to null.
         * 
         * ->**NOTE:** PrePaid mode will deduct fees from the account directly and the bandwidth package can't be deleted before expired time.
         * 
         * ->**NOTE:** The PostPaid mode is only for test. Please open a ticket if you need.
         * 
         * @return builder
         * 
         */
        public Builder cenBandwidthPackageName(String cenBandwidthPackageName) {
            return cenBandwidthPackageName(Output.of(cenBandwidthPackageName));
        }

        /**
         * @param chargeType Field `charge_type` has been deprecated from version 1.97.0. Use `payment_type` and instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.
         * 
         */
        @Deprecated /* Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead. */
        public Builder chargeType(@Nullable Output chargeType) {
            $.chargeType = chargeType;
            return this;
        }

        /**
         * @param chargeType Field `charge_type` has been deprecated from version 1.97.0. Use `payment_type` and instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.
         * 
         */
        @Deprecated /* Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead. */
        public Builder chargeType(String chargeType) {
            return chargeType(Output.of(chargeType));
        }

        /**
         * @param description The description of the bandwidth package. Default to null.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the bandwidth package. Default to null.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param geographicRegionAId The area A to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
         * 
         * @return builder
         * 
         */
        public Builder geographicRegionAId(@Nullable Output geographicRegionAId) {
            $.geographicRegionAId = geographicRegionAId;
            return this;
        }

        /**
         * @param geographicRegionAId The area A to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
         * 
         * @return builder
         * 
         */
        public Builder geographicRegionAId(String geographicRegionAId) {
            return geographicRegionAId(Output.of(geographicRegionAId));
        }

        /**
         * @param geographicRegionBId The area B to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
         * 
         * @return builder
         * 
         */
        public Builder geographicRegionBId(@Nullable Output geographicRegionBId) {
            $.geographicRegionBId = geographicRegionBId;
            return this;
        }

        /**
         * @param geographicRegionBId The area B to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
         * 
         * @return builder
         * 
         */
        public Builder geographicRegionBId(String geographicRegionBId) {
            return geographicRegionBId(Output.of(geographicRegionBId));
        }

        /**
         * @param geographicRegionIds Field `geographic_region_ids` has been deprecated from version 1.97.0. Use `geographic_region_a_id` and `geographic_region_b_id` instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.
         * 
         */
        @Deprecated /* Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead. */
        public Builder geographicRegionIds(@Nullable Output> geographicRegionIds) {
            $.geographicRegionIds = geographicRegionIds;
            return this;
        }

        /**
         * @param geographicRegionIds Field `geographic_region_ids` has been deprecated from version 1.97.0. Use `geographic_region_a_id` and `geographic_region_b_id` instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.
         * 
         */
        @Deprecated /* Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead. */
        public Builder geographicRegionIds(List geographicRegionIds) {
            return geographicRegionIds(Output.of(geographicRegionIds));
        }

        /**
         * @param geographicRegionIds Field `geographic_region_ids` has been deprecated from version 1.97.0. Use `geographic_region_a_id` and `geographic_region_b_id` instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.
         * 
         */
        @Deprecated /* Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead. */
        public Builder geographicRegionIds(String... geographicRegionIds) {
            return geographicRegionIds(List.of(geographicRegionIds));
        }

        /**
         * @param name Field `name` has been deprecated from version 1.97.0. Use `cen_bandwidth_package_name` and instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.
         * 
         */
        @Deprecated /* Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead. */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Field `name` has been deprecated from version 1.97.0. Use `cen_bandwidth_package_name` and instead.
         * 
         * @return builder
         * 
         * @deprecated
         * Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.
         * 
         */
        @Deprecated /* Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead. */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param paymentType The billing method. Valid value: `PostPaid` | `PrePaid`. Default to `PrePaid`. If set to PrePaid, the bandwidth package can't be deleted before expired time.
         * 
         * @return builder
         * 
         */
        public Builder paymentType(@Nullable Output paymentType) {
            $.paymentType = paymentType;
            return this;
        }

        /**
         * @param paymentType The billing method. Valid value: `PostPaid` | `PrePaid`. Default to `PrePaid`. If set to PrePaid, the bandwidth package can't be deleted before expired time.
         * 
         * @return builder
         * 
         */
        public Builder paymentType(String paymentType) {
            return paymentType(Output.of(paymentType));
        }

        /**
         * @param period The purchase period in month. Valid value: `1`, `2`, `3`, `6`, `12`.
         * > **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
         * 
         * @return builder
         * 
         */
        public Builder period(@Nullable Output period) {
            $.period = period;
            return this;
        }

        /**
         * @param period The purchase period in month. Valid value: `1`, `2`, `3`, `6`, `12`.
         * > **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
         * 
         * @return builder
         * 
         */
        public Builder period(Integer period) {
            return period(Output.of(period));
        }

        public BandwidthPackageArgs build() {
            if ($.bandwidth == null) {
                throw new MissingRequiredPropertyException("BandwidthPackageArgs", "bandwidth");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy