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

com.pulumi.alicloud.rocketmq.InstanceArgs 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.rocketmq;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final InstanceArgs Empty = new InstanceArgs();

    /**
     * Two instances on a single account in the same region cannot have the same name. The length must be 3 to 64 characters. Chinese characters, English letters digits and hyphen are allowed.
     * 
     */
    @Import(name="instanceName")
    private @Nullable Output instanceName;

    /**
     * @return Two instances on a single account in the same region cannot have the same name. The length must be 3 to 64 characters. Chinese characters, English letters digits and hyphen are allowed.
     * 
     */
    public Optional> instanceName() {
        return Optional.ofNullable(this.instanceName);
    }

    /**
     * Replaced by `instance_name` after version 1.97.0.
     * 
     * @deprecated
     * Field 'name' has been deprecated from version 1.97.0. Use 'instance_name' instead.
     * 
     */
    @Deprecated /* Field 'name' has been deprecated from version 1.97.0. Use 'instance_name' instead. */
    @Import(name="name")
    private @Nullable Output name;

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

    /**
     * This attribute is a concise description of instance. The length cannot exceed 128.
     * 
     */
    @Import(name="remark")
    private @Nullable Output remark;

    /**
     * @return This attribute is a concise description of instance. The length cannot exceed 128.
     * 
     */
    public Optional> remark() {
        return Optional.ofNullable(this.remark);
    }

    /**
     * A mapping of tags to assign to the resource.
     * - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
     * - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
     * - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private InstanceArgs() {}

    private InstanceArgs(InstanceArgs $) {
        this.instanceName = $.instanceName;
        this.name = $.name;
        this.remark = $.remark;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private InstanceArgs $;

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

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

        /**
         * @param instanceName Two instances on a single account in the same region cannot have the same name. The length must be 3 to 64 characters. Chinese characters, English letters digits and hyphen are allowed.
         * 
         * @return builder
         * 
         */
        public Builder instanceName(@Nullable Output instanceName) {
            $.instanceName = instanceName;
            return this;
        }

        /**
         * @param instanceName Two instances on a single account in the same region cannot have the same name. The length must be 3 to 64 characters. Chinese characters, English letters digits and hyphen are allowed.
         * 
         * @return builder
         * 
         */
        public Builder instanceName(String instanceName) {
            return instanceName(Output.of(instanceName));
        }

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

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

        /**
         * @param remark This attribute is a concise description of instance. The length cannot exceed 128.
         * 
         * @return builder
         * 
         */
        public Builder remark(@Nullable Output remark) {
            $.remark = remark;
            return this;
        }

        /**
         * @param remark This attribute is a concise description of instance. The length cannot exceed 128.
         * 
         * @return builder
         * 
         */
        public Builder remark(String remark) {
            return remark(Output.of(remark));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
         * - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * - Key: It can be up to 64 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It cannot be a null string.
         * - Value: It can be up to 128 characters in length. It cannot begin with "aliyun", "acs:", "http://", or "https://". It can be a null string.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public InstanceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy