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

com.pulumi.alicloud.dcdn.KvArgs 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.dcdn;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


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

    public static final KvArgs Empty = new KvArgs();

    /**
     * The name of the key to Put, the longest 512, cannot contain spaces.
     * 
     */
    @Import(name="key", required=true)
    private Output key;

    /**
     * @return The name of the key to Put, the longest 512, cannot contain spaces.
     * 
     */
    public Output key() {
        return this.key;
    }

    /**
     * The name specified when the customer calls PutDcdnKvNamespace.
     * 
     */
    @Import(name="namespace", required=true)
    private Output namespace;

    /**
     * @return The name specified when the customer calls PutDcdnKvNamespace.
     * 
     */
    public Output namespace() {
        return this.namespace;
    }

    /**
     * The content of key, up to 2M(2*1000*1000).
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return The content of key, up to 2M(2*1000*1000).
     * 
     */
    public Output value() {
        return this.value;
    }

    private KvArgs() {}

    private KvArgs(KvArgs $) {
        this.key = $.key;
        this.namespace = $.namespace;
        this.value = $.value;
    }

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

    public static final class Builder {
        private KvArgs $;

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

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

        /**
         * @param key The name of the key to Put, the longest 512, cannot contain spaces.
         * 
         * @return builder
         * 
         */
        public Builder key(Output key) {
            $.key = key;
            return this;
        }

        /**
         * @param key The name of the key to Put, the longest 512, cannot contain spaces.
         * 
         * @return builder
         * 
         */
        public Builder key(String key) {
            return key(Output.of(key));
        }

        /**
         * @param namespace The name specified when the customer calls PutDcdnKvNamespace.
         * 
         * @return builder
         * 
         */
        public Builder namespace(Output namespace) {
            $.namespace = namespace;
            return this;
        }

        /**
         * @param namespace The name specified when the customer calls PutDcdnKvNamespace.
         * 
         * @return builder
         * 
         */
        public Builder namespace(String namespace) {
            return namespace(Output.of(namespace));
        }

        /**
         * @param value The content of key, up to 2M(2*1000*1000).
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The content of key, up to 2M(2*1000*1000).
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public KvArgs build() {
            if ($.key == null) {
                throw new MissingRequiredPropertyException("KvArgs", "key");
            }
            if ($.namespace == null) {
                throw new MissingRequiredPropertyException("KvArgs", "namespace");
            }
            if ($.value == null) {
                throw new MissingRequiredPropertyException("KvArgs", "value");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy