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

com.pulumi.azurenative.apimanagement.outputs.ParameterExampleContractResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.apimanagement.outputs;

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

@CustomType
public final class ParameterExampleContractResponse {
    /**
     * @return Long description for the example
     * 
     */
    private @Nullable String description;
    /**
     * @return A URL that points to the literal example
     * 
     */
    private @Nullable String externalValue;
    /**
     * @return Short description for the example
     * 
     */
    private @Nullable String summary;
    /**
     * @return Example value. May be a primitive value, or an object.
     * 
     */
    private @Nullable Object value;

    private ParameterExampleContractResponse() {}
    /**
     * @return Long description for the example
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return A URL that points to the literal example
     * 
     */
    public Optional externalValue() {
        return Optional.ofNullable(this.externalValue);
    }
    /**
     * @return Short description for the example
     * 
     */
    public Optional summary() {
        return Optional.ofNullable(this.summary);
    }
    /**
     * @return Example value. May be a primitive value, or an object.
     * 
     */
    public Optional value() {
        return Optional.ofNullable(this.value);
    }

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

    public static Builder builder(ParameterExampleContractResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String description;
        private @Nullable String externalValue;
        private @Nullable String summary;
        private @Nullable Object value;
        public Builder() {}
        public Builder(ParameterExampleContractResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.externalValue = defaults.externalValue;
    	      this.summary = defaults.summary;
    	      this.value = defaults.value;
        }

        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder externalValue(@Nullable String externalValue) {

            this.externalValue = externalValue;
            return this;
        }
        @CustomType.Setter
        public Builder summary(@Nullable String summary) {

            this.summary = summary;
            return this;
        }
        @CustomType.Setter
        public Builder value(@Nullable Object value) {

            this.value = value;
            return this;
        }
        public ParameterExampleContractResponse build() {
            final var _resultValue = new ParameterExampleContractResponse();
            _resultValue.description = description;
            _resultValue.externalValue = externalValue;
            _resultValue.summary = summary;
            _resultValue.value = value;
            return _resultValue;
        }
    }
}