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

com.pulumi.alicloud.cr.ChainArgs 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.cr;

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


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

    public static final ChainArgs Empty = new ChainArgs();

    /**
     * The configuration of delivery chain. See `chain_config` below. **NOTE:** This parameter must specify the correct value, otherwise the created resource will be incorrect.
     * 
     */
    @Import(name="chainConfigs")
    private @Nullable Output> chainConfigs;

    /**
     * @return The configuration of delivery chain. See `chain_config` below. **NOTE:** This parameter must specify the correct value, otherwise the created resource will be incorrect.
     * 
     */
    public Optional>> chainConfigs() {
        return Optional.ofNullable(this.chainConfigs);
    }

    /**
     * The name of delivery chain. The length of the name is 1-64 characters, lowercase English letters and numbers, and the separators "_", "-", "." can be used, noted that the separator cannot be at the first or last position.
     * 
     */
    @Import(name="chainName", required=true)
    private Output chainName;

    /**
     * @return The name of delivery chain. The length of the name is 1-64 characters, lowercase English letters and numbers, and the separators "_", "-", "." can be used, noted that the separator cannot be at the first or last position.
     * 
     */
    public Output chainName() {
        return this.chainName;
    }

    /**
     * The description delivery chain.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description delivery chain.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The ID of CR Enterprise Edition instance.
     * 
     */
    @Import(name="instanceId", required=true)
    private Output instanceId;

    /**
     * @return The ID of CR Enterprise Edition instance.
     * 
     */
    public Output instanceId() {
        return this.instanceId;
    }

    /**
     * The name of CR Enterprise Edition repository. **NOTE:** This parameter must specify a correct value, otherwise the created resource will be incorrect.
     * 
     */
    @Import(name="repoName")
    private @Nullable Output repoName;

    /**
     * @return The name of CR Enterprise Edition repository. **NOTE:** This parameter must specify a correct value, otherwise the created resource will be incorrect.
     * 
     */
    public Optional> repoName() {
        return Optional.ofNullable(this.repoName);
    }

    /**
     * The name of CR Enterprise Edition namespace. **NOTE:** This parameter must specify the correct value, otherwise the created resource will be incorrect.
     * 
     */
    @Import(name="repoNamespaceName")
    private @Nullable Output repoNamespaceName;

    /**
     * @return The name of CR Enterprise Edition namespace. **NOTE:** This parameter must specify the correct value, otherwise the created resource will be incorrect.
     * 
     */
    public Optional> repoNamespaceName() {
        return Optional.ofNullable(this.repoNamespaceName);
    }

    private ChainArgs() {}

    private ChainArgs(ChainArgs $) {
        this.chainConfigs = $.chainConfigs;
        this.chainName = $.chainName;
        this.description = $.description;
        this.instanceId = $.instanceId;
        this.repoName = $.repoName;
        this.repoNamespaceName = $.repoNamespaceName;
    }

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

    public static final class Builder {
        private ChainArgs $;

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

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

        /**
         * @param chainConfigs The configuration of delivery chain. See `chain_config` below. **NOTE:** This parameter must specify the correct value, otherwise the created resource will be incorrect.
         * 
         * @return builder
         * 
         */
        public Builder chainConfigs(@Nullable Output> chainConfigs) {
            $.chainConfigs = chainConfigs;
            return this;
        }

        /**
         * @param chainConfigs The configuration of delivery chain. See `chain_config` below. **NOTE:** This parameter must specify the correct value, otherwise the created resource will be incorrect.
         * 
         * @return builder
         * 
         */
        public Builder chainConfigs(List chainConfigs) {
            return chainConfigs(Output.of(chainConfigs));
        }

        /**
         * @param chainConfigs The configuration of delivery chain. See `chain_config` below. **NOTE:** This parameter must specify the correct value, otherwise the created resource will be incorrect.
         * 
         * @return builder
         * 
         */
        public Builder chainConfigs(ChainChainConfigArgs... chainConfigs) {
            return chainConfigs(List.of(chainConfigs));
        }

        /**
         * @param chainName The name of delivery chain. The length of the name is 1-64 characters, lowercase English letters and numbers, and the separators "_", "-", "." can be used, noted that the separator cannot be at the first or last position.
         * 
         * @return builder
         * 
         */
        public Builder chainName(Output chainName) {
            $.chainName = chainName;
            return this;
        }

        /**
         * @param chainName The name of delivery chain. The length of the name is 1-64 characters, lowercase English letters and numbers, and the separators "_", "-", "." can be used, noted that the separator cannot be at the first or last position.
         * 
         * @return builder
         * 
         */
        public Builder chainName(String chainName) {
            return chainName(Output.of(chainName));
        }

        /**
         * @param description The description delivery chain.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description delivery chain.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param instanceId The ID of CR Enterprise Edition instance.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(Output instanceId) {
            $.instanceId = instanceId;
            return this;
        }

        /**
         * @param instanceId The ID of CR Enterprise Edition instance.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(String instanceId) {
            return instanceId(Output.of(instanceId));
        }

        /**
         * @param repoName The name of CR Enterprise Edition repository. **NOTE:** This parameter must specify a correct value, otherwise the created resource will be incorrect.
         * 
         * @return builder
         * 
         */
        public Builder repoName(@Nullable Output repoName) {
            $.repoName = repoName;
            return this;
        }

        /**
         * @param repoName The name of CR Enterprise Edition repository. **NOTE:** This parameter must specify a correct value, otherwise the created resource will be incorrect.
         * 
         * @return builder
         * 
         */
        public Builder repoName(String repoName) {
            return repoName(Output.of(repoName));
        }

        /**
         * @param repoNamespaceName The name of CR Enterprise Edition namespace. **NOTE:** This parameter must specify the correct value, otherwise the created resource will be incorrect.
         * 
         * @return builder
         * 
         */
        public Builder repoNamespaceName(@Nullable Output repoNamespaceName) {
            $.repoNamespaceName = repoNamespaceName;
            return this;
        }

        /**
         * @param repoNamespaceName The name of CR Enterprise Edition namespace. **NOTE:** This parameter must specify the correct value, otherwise the created resource will be incorrect.
         * 
         * @return builder
         * 
         */
        public Builder repoNamespaceName(String repoNamespaceName) {
            return repoNamespaceName(Output.of(repoNamespaceName));
        }

        public ChainArgs build() {
            if ($.chainName == null) {
                throw new MissingRequiredPropertyException("ChainArgs", "chainName");
            }
            if ($.instanceId == null) {
                throw new MissingRequiredPropertyException("ChainArgs", "instanceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy