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

com.pulumi.azurenative.apimanagement.inputs.ParameterExampleContractArgs Maven / Gradle / Ivy

The 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.azurenative.apimanagement.inputs;

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


/**
 * Parameter example.
 * 
 */
public final class ParameterExampleContractArgs extends com.pulumi.resources.ResourceArgs {

    public static final ParameterExampleContractArgs Empty = new ParameterExampleContractArgs();

    /**
     * Long description for the example
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Long description for the example
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * A URL that points to the literal example
     * 
     */
    @Import(name="externalValue")
    private @Nullable Output externalValue;

    /**
     * @return A URL that points to the literal example
     * 
     */
    public Optional> externalValue() {
        return Optional.ofNullable(this.externalValue);
    }

    /**
     * Short description for the example
     * 
     */
    @Import(name="summary")
    private @Nullable Output summary;

    /**
     * @return Short description for the example
     * 
     */
    public Optional> summary() {
        return Optional.ofNullable(this.summary);
    }

    /**
     * Example value. May be a primitive value, or an object.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return Example value. May be a primitive value, or an object.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private ParameterExampleContractArgs() {}

    private ParameterExampleContractArgs(ParameterExampleContractArgs $) {
        this.description = $.description;
        this.externalValue = $.externalValue;
        this.summary = $.summary;
        this.value = $.value;
    }

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

    public static final class Builder {
        private ParameterExampleContractArgs $;

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

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

        /**
         * @param description Long description for the example
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Long description for the example
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param externalValue A URL that points to the literal example
         * 
         * @return builder
         * 
         */
        public Builder externalValue(@Nullable Output externalValue) {
            $.externalValue = externalValue;
            return this;
        }

        /**
         * @param externalValue A URL that points to the literal example
         * 
         * @return builder
         * 
         */
        public Builder externalValue(String externalValue) {
            return externalValue(Output.of(externalValue));
        }

        /**
         * @param summary Short description for the example
         * 
         * @return builder
         * 
         */
        public Builder summary(@Nullable Output summary) {
            $.summary = summary;
            return this;
        }

        /**
         * @param summary Short description for the example
         * 
         * @return builder
         * 
         */
        public Builder summary(String summary) {
            return summary(Output.of(summary));
        }

        /**
         * @param value Example value. May be a primitive value, or an object.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Example value. May be a primitive value, or an object.
         * 
         * @return builder
         * 
         */
        public Builder value(Object value) {
            return value(Output.of(value));
        }

        public ParameterExampleContractArgs build() {
            return $;
        }
    }

}