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

com.pulumi.aws.appmesh.inputs.GatewayRouteSpecHttpRouteActionRewritePrefixArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

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.aws.appmesh.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 GatewayRouteSpecHttpRouteActionRewritePrefixArgs extends com.pulumi.resources.ResourceArgs {

    public static final GatewayRouteSpecHttpRouteActionRewritePrefixArgs Empty = new GatewayRouteSpecHttpRouteActionRewritePrefixArgs();

    /**
     * Default prefix used to replace the incoming route prefix when rewritten. Valid values: `ENABLED`, `DISABLED`.
     * 
     */
    @Import(name="defaultPrefix")
    private @Nullable Output defaultPrefix;

    /**
     * @return Default prefix used to replace the incoming route prefix when rewritten. Valid values: `ENABLED`, `DISABLED`.
     * 
     */
    public Optional> defaultPrefix() {
        return Optional.ofNullable(this.defaultPrefix);
    }

    /**
     * Value used to replace the incoming route prefix when rewritten.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return Value used to replace the incoming route prefix when rewritten.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private GatewayRouteSpecHttpRouteActionRewritePrefixArgs() {}

    private GatewayRouteSpecHttpRouteActionRewritePrefixArgs(GatewayRouteSpecHttpRouteActionRewritePrefixArgs $) {
        this.defaultPrefix = $.defaultPrefix;
        this.value = $.value;
    }

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

    public static final class Builder {
        private GatewayRouteSpecHttpRouteActionRewritePrefixArgs $;

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

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

        /**
         * @param defaultPrefix Default prefix used to replace the incoming route prefix when rewritten. Valid values: `ENABLED`, `DISABLED`.
         * 
         * @return builder
         * 
         */
        public Builder defaultPrefix(@Nullable Output defaultPrefix) {
            $.defaultPrefix = defaultPrefix;
            return this;
        }

        /**
         * @param defaultPrefix Default prefix used to replace the incoming route prefix when rewritten. Valid values: `ENABLED`, `DISABLED`.
         * 
         * @return builder
         * 
         */
        public Builder defaultPrefix(String defaultPrefix) {
            return defaultPrefix(Output.of(defaultPrefix));
        }

        /**
         * @param value Value used to replace the incoming route prefix when rewritten.
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value Value used to replace the incoming route prefix when rewritten.
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public GatewayRouteSpecHttpRouteActionRewritePrefixArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy