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

com.pulumi.alicloud.dns.inputs.AddressPoolAddressArgs 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.dns.inputs;

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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AddressPoolAddressArgs Empty = new AddressPoolAddressArgs();

    /**
     * The address that you want to add to the address pool.
     * 
     */
    @Import(name="address", required=true)
    private Output address;

    /**
     * @return The address that you want to add to the address pool.
     * 
     */
    public Output address() {
        return this.address;
    }

    /**
     * The source region of the address. expressed as a JSON string. The structure is as follows:
     * * `LineCodes`: List of home lineCodes.
     * * `lineCodeRectifyType`: The rectification type of the line code. Default value: `AUTO`. Valid values: `NO_NEED`: no need for rectification. `RECTIFIED`: rectified. `AUTO`: automatic rectification.
     * 
     */
    @Import(name="attributeInfo", required=true)
    private Output attributeInfo;

    /**
     * @return The source region of the address. expressed as a JSON string. The structure is as follows:
     * * `LineCodes`: List of home lineCodes.
     * * `lineCodeRectifyType`: The rectification type of the line code. Default value: `AUTO`. Valid values: `NO_NEED`: no need for rectification. `RECTIFIED`: rectified. `AUTO`: automatic rectification.
     * 
     */
    public Output attributeInfo() {
        return this.attributeInfo;
    }

    /**
     * The weight of the address. **NOTE:** The attribute is valid when the attribute `lba_strategy` is `RATIO`.
     * 
     */
    @Import(name="lbaWeight")
    private @Nullable Output lbaWeight;

    /**
     * @return The weight of the address. **NOTE:** The attribute is valid when the attribute `lba_strategy` is `RATIO`.
     * 
     */
    public Optional> lbaWeight() {
        return Optional.ofNullable(this.lbaWeight);
    }

    /**
     * The type of the address. Valid values:`SMART`, `ONLINE` and `OFFLINE`.
     * 
     */
    @Import(name="mode", required=true)
    private Output mode;

    /**
     * @return The type of the address. Valid values:`SMART`, `ONLINE` and `OFFLINE`.
     * 
     */
    public Output mode() {
        return this.mode;
    }

    /**
     * The description of the address.
     * 
     */
    @Import(name="remark")
    private @Nullable Output remark;

    /**
     * @return The description of the address.
     * 
     */
    public Optional> remark() {
        return Optional.ofNullable(this.remark);
    }

    private AddressPoolAddressArgs() {}

    private AddressPoolAddressArgs(AddressPoolAddressArgs $) {
        this.address = $.address;
        this.attributeInfo = $.attributeInfo;
        this.lbaWeight = $.lbaWeight;
        this.mode = $.mode;
        this.remark = $.remark;
    }

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

    public static final class Builder {
        private AddressPoolAddressArgs $;

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

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

        /**
         * @param address The address that you want to add to the address pool.
         * 
         * @return builder
         * 
         */
        public Builder address(Output address) {
            $.address = address;
            return this;
        }

        /**
         * @param address The address that you want to add to the address pool.
         * 
         * @return builder
         * 
         */
        public Builder address(String address) {
            return address(Output.of(address));
        }

        /**
         * @param attributeInfo The source region of the address. expressed as a JSON string. The structure is as follows:
         * * `LineCodes`: List of home lineCodes.
         * * `lineCodeRectifyType`: The rectification type of the line code. Default value: `AUTO`. Valid values: `NO_NEED`: no need for rectification. `RECTIFIED`: rectified. `AUTO`: automatic rectification.
         * 
         * @return builder
         * 
         */
        public Builder attributeInfo(Output attributeInfo) {
            $.attributeInfo = attributeInfo;
            return this;
        }

        /**
         * @param attributeInfo The source region of the address. expressed as a JSON string. The structure is as follows:
         * * `LineCodes`: List of home lineCodes.
         * * `lineCodeRectifyType`: The rectification type of the line code. Default value: `AUTO`. Valid values: `NO_NEED`: no need for rectification. `RECTIFIED`: rectified. `AUTO`: automatic rectification.
         * 
         * @return builder
         * 
         */
        public Builder attributeInfo(String attributeInfo) {
            return attributeInfo(Output.of(attributeInfo));
        }

        /**
         * @param lbaWeight The weight of the address. **NOTE:** The attribute is valid when the attribute `lba_strategy` is `RATIO`.
         * 
         * @return builder
         * 
         */
        public Builder lbaWeight(@Nullable Output lbaWeight) {
            $.lbaWeight = lbaWeight;
            return this;
        }

        /**
         * @param lbaWeight The weight of the address. **NOTE:** The attribute is valid when the attribute `lba_strategy` is `RATIO`.
         * 
         * @return builder
         * 
         */
        public Builder lbaWeight(Integer lbaWeight) {
            return lbaWeight(Output.of(lbaWeight));
        }

        /**
         * @param mode The type of the address. Valid values:`SMART`, `ONLINE` and `OFFLINE`.
         * 
         * @return builder
         * 
         */
        public Builder mode(Output mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode The type of the address. Valid values:`SMART`, `ONLINE` and `OFFLINE`.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param remark The description of the address.
         * 
         * @return builder
         * 
         */
        public Builder remark(@Nullable Output remark) {
            $.remark = remark;
            return this;
        }

        /**
         * @param remark The description of the address.
         * 
         * @return builder
         * 
         */
        public Builder remark(String remark) {
            return remark(Output.of(remark));
        }

        public AddressPoolAddressArgs build() {
            if ($.address == null) {
                throw new MissingRequiredPropertyException("AddressPoolAddressArgs", "address");
            }
            if ($.attributeInfo == null) {
                throw new MissingRequiredPropertyException("AddressPoolAddressArgs", "attributeInfo");
            }
            if ($.mode == null) {
                throw new MissingRequiredPropertyException("AddressPoolAddressArgs", "mode");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy