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

com.pulumi.googlenative.retail.v2.inputs.GoogleCloudRetailV2SearchRequestPersonalizationSpecArgs Maven / Gradle / Ivy

// *** 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.googlenative.retail.v2.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.retail.v2.enums.GoogleCloudRetailV2SearchRequestPersonalizationSpecMode;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The specification for personalization.
 * 
 */
public final class GoogleCloudRetailV2SearchRequestPersonalizationSpecArgs extends com.pulumi.resources.ResourceArgs {

    public static final GoogleCloudRetailV2SearchRequestPersonalizationSpecArgs Empty = new GoogleCloudRetailV2SearchRequestPersonalizationSpecArgs();

    /**
     * Defaults to Mode.AUTO.
     * 
     */
    @Import(name="mode")
    private @Nullable Output mode;

    /**
     * @return Defaults to Mode.AUTO.
     * 
     */
    public Optional> mode() {
        return Optional.ofNullable(this.mode);
    }

    private GoogleCloudRetailV2SearchRequestPersonalizationSpecArgs() {}

    private GoogleCloudRetailV2SearchRequestPersonalizationSpecArgs(GoogleCloudRetailV2SearchRequestPersonalizationSpecArgs $) {
        this.mode = $.mode;
    }

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

    public static final class Builder {
        private GoogleCloudRetailV2SearchRequestPersonalizationSpecArgs $;

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

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

        /**
         * @param mode Defaults to Mode.AUTO.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode Defaults to Mode.AUTO.
         * 
         * @return builder
         * 
         */
        public Builder mode(GoogleCloudRetailV2SearchRequestPersonalizationSpecMode mode) {
            return mode(Output.of(mode));
        }

        public GoogleCloudRetailV2SearchRequestPersonalizationSpecArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy