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

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

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


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

    public static final KvState Empty = new KvState();

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

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

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

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

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

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

    private KvState() {}

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

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

    public static final class Builder {
        private KvState $;

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

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

        /**
         * @param key The name of the key to Put, the longest 512, cannot contain spaces.
         * 
         * @return builder
         * 
         */
        public Builder key(@Nullable 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(@Nullable 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(@Nullable 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 KvState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy