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

com.pulumi.alicloud.cen.inputs.BandwidthPackageState 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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 BandwidthPackageState extends com.pulumi.resources.ResourceArgs {

    public static final BandwidthPackageState Empty = new BandwidthPackageState();

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

    /**
     * @return The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
     * 
     */
    public Optional> bandwidth() {
        return Optional.ofNullable(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 time of the bandwidth package to expire.
     * 
     */
    @Import(name="expiredTime")
    private @Nullable Output expiredTime;

    /**
     * @return The time of the bandwidth package to expire.
     * 
     */
    public Optional> expiredTime() {
        return Optional.ofNullable(this.expiredTime);
    }

    /**
     * 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);
    }

    /**
     * The association status of the bandwidth package.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The association status of the bandwidth package.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    private BandwidthPackageState() {}

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

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

    public static final class Builder {
        private BandwidthPackageState $;

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

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

        /**
         * @param bandwidth The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
         * 
         * @return builder
         * 
         */
        public Builder bandwidth(@Nullable 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 expiredTime The time of the bandwidth package to expire.
         * 
         * @return builder
         * 
         */
        public Builder expiredTime(@Nullable Output expiredTime) {
            $.expiredTime = expiredTime;
            return this;
        }

        /**
         * @param expiredTime The time of the bandwidth package to expire.
         * 
         * @return builder
         * 
         */
        public Builder expiredTime(String expiredTime) {
            return expiredTime(Output.of(expiredTime));
        }

        /**
         * @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));
        }

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

        /**
         * @param status The association status of the bandwidth package.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        public BandwidthPackageState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy