// *** 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.azure.apimanagement.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 ApiOperationRequestHeaderExampleArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApiOperationRequestHeaderExampleArgs Empty = new ApiOperationRequestHeaderExampleArgs();

    /**
     * A long description for this example.
     * 
     */
    @Import(name="description")
    private @Nullable Output<String> description;

    /**
     * @return A long description for this example.
     * 
     */
    public Optional<Output<String>> description() {
        return Optional.ofNullable(this.description);
    }

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

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

    /**
     * The name of this example.
     * 
     */
    @Import(name="name", required=true)
    private Output<String> name;

    /**
     * @return The name of this example.
     * 
     */
    public Output<String> name() {
        return this.name;
    }

    /**
     * A short description for this example.
     * 
     */
    @Import(name="summary")
    private @Nullable Output<String> summary;

    /**
     * @return A short description for this example.
     * 
     */
    public Optional<Output<String>> summary() {
        return Optional.ofNullable(this.summary);
    }

    /**
     * The example of the representation.
     * 
     */
    @Import(name="value")
    private @Nullable Output<String> value;

    /**
     * @return The example of the representation.
     * 
     */
    public Optional<Output<String>> value() {
        return Optional.ofNullable(this.value);
    }

    private ApiOperationRequestHeaderExampleArgs() {}

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

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

    public static final class Builder {
        private ApiOperationRequestHeaderExampleArgs $;

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

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

        /**
         * @param description A long description for this example.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output<String> description) {
            $.description = description;
            return this;
        }

        /**
         * @param description A long description for this 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<String> 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 name The name of this example.
         * 
         * @return builder
         * 
         */
        public Builder name(Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of this example.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param summary A short description for this example.
         * 
         * @return builder
         * 
         */
        public Builder summary(@Nullable Output<String> summary) {
            $.summary = summary;
            return this;
        }

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

        /**
         * @param value The example of the representation.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output<String> value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The example of the representation.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public ApiOperationRequestHeaderExampleArgs build() {
            $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null");
            return $;
        }
    }

}
