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

com.pulumi.googlenative.retail.v2.inputs.GoogleCloudRetailV2RuleReplacementActionArgs 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 java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Replaces a term in the query. Multiple replacement candidates can be specified. All `query_terms` will be replaced with the replacement term. Example: Replace "gShoe" with "google shoe".
 * 
 */
public final class GoogleCloudRetailV2RuleReplacementActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final GoogleCloudRetailV2RuleReplacementActionArgs Empty = new GoogleCloudRetailV2RuleReplacementActionArgs();

    /**
     * Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.
     * 
     */
    @Import(name="queryTerms")
    private @Nullable Output> queryTerms;

    /**
     * @return Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.
     * 
     */
    public Optional>> queryTerms() {
        return Optional.ofNullable(this.queryTerms);
    }

    /**
     * Term that will be used for replacement.
     * 
     */
    @Import(name="replacementTerm")
    private @Nullable Output replacementTerm;

    /**
     * @return Term that will be used for replacement.
     * 
     */
    public Optional> replacementTerm() {
        return Optional.ofNullable(this.replacementTerm);
    }

    /**
     * Will be [deprecated = true] post migration;
     * 
     */
    @Import(name="term")
    private @Nullable Output term;

    /**
     * @return Will be [deprecated = true] post migration;
     * 
     */
    public Optional> term() {
        return Optional.ofNullable(this.term);
    }

    private GoogleCloudRetailV2RuleReplacementActionArgs() {}

    private GoogleCloudRetailV2RuleReplacementActionArgs(GoogleCloudRetailV2RuleReplacementActionArgs $) {
        this.queryTerms = $.queryTerms;
        this.replacementTerm = $.replacementTerm;
        this.term = $.term;
    }

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

    public static final class Builder {
        private GoogleCloudRetailV2RuleReplacementActionArgs $;

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

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

        /**
         * @param queryTerms Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.
         * 
         * @return builder
         * 
         */
        public Builder queryTerms(@Nullable Output> queryTerms) {
            $.queryTerms = queryTerms;
            return this;
        }

        /**
         * @param queryTerms Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.
         * 
         * @return builder
         * 
         */
        public Builder queryTerms(List queryTerms) {
            return queryTerms(Output.of(queryTerms));
        }

        /**
         * @param queryTerms Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.
         * 
         * @return builder
         * 
         */
        public Builder queryTerms(String... queryTerms) {
            return queryTerms(List.of(queryTerms));
        }

        /**
         * @param replacementTerm Term that will be used for replacement.
         * 
         * @return builder
         * 
         */
        public Builder replacementTerm(@Nullable Output replacementTerm) {
            $.replacementTerm = replacementTerm;
            return this;
        }

        /**
         * @param replacementTerm Term that will be used for replacement.
         * 
         * @return builder
         * 
         */
        public Builder replacementTerm(String replacementTerm) {
            return replacementTerm(Output.of(replacementTerm));
        }

        /**
         * @param term Will be [deprecated = true] post migration;
         * 
         * @return builder
         * 
         */
        public Builder term(@Nullable Output term) {
            $.term = term;
            return this;
        }

        /**
         * @param term Will be [deprecated = true] post migration;
         * 
         * @return builder
         * 
         */
        public Builder term(String term) {
            return term(Output.of(term));
        }

        public GoogleCloudRetailV2RuleReplacementActionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy