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

com.pulumi.azurenative.cdn.outputs.UrlRewriteActionParametersResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.cdn.outputs;

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

@CustomType
public final class UrlRewriteActionParametersResponse {
    /**
     * @return Define the relative URL to which the above requests will be rewritten by.
     * 
     */
    private String destination;
    /**
     * @return Whether to preserve unmatched path. Default value is true.
     * 
     */
    private @Nullable Boolean preserveUnmatchedPath;
    /**
     * @return define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all strings are matched.
     * 
     */
    private String sourcePattern;
    private String typeName;

    private UrlRewriteActionParametersResponse() {}
    /**
     * @return Define the relative URL to which the above requests will be rewritten by.
     * 
     */
    public String destination() {
        return this.destination;
    }
    /**
     * @return Whether to preserve unmatched path. Default value is true.
     * 
     */
    public Optional preserveUnmatchedPath() {
        return Optional.ofNullable(this.preserveUnmatchedPath);
    }
    /**
     * @return define a request URI pattern that identifies the type of requests that may be rewritten. If value is blank, all strings are matched.
     * 
     */
    public String sourcePattern() {
        return this.sourcePattern;
    }
    public String typeName() {
        return this.typeName;
    }

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

    public static Builder builder(UrlRewriteActionParametersResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String destination;
        private @Nullable Boolean preserveUnmatchedPath;
        private String sourcePattern;
        private String typeName;
        public Builder() {}
        public Builder(UrlRewriteActionParametersResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.destination = defaults.destination;
    	      this.preserveUnmatchedPath = defaults.preserveUnmatchedPath;
    	      this.sourcePattern = defaults.sourcePattern;
    	      this.typeName = defaults.typeName;
        }

        @CustomType.Setter
        public Builder destination(String destination) {
            if (destination == null) {
              throw new MissingRequiredPropertyException("UrlRewriteActionParametersResponse", "destination");
            }
            this.destination = destination;
            return this;
        }
        @CustomType.Setter
        public Builder preserveUnmatchedPath(@Nullable Boolean preserveUnmatchedPath) {

            this.preserveUnmatchedPath = preserveUnmatchedPath;
            return this;
        }
        @CustomType.Setter
        public Builder sourcePattern(String sourcePattern) {
            if (sourcePattern == null) {
              throw new MissingRequiredPropertyException("UrlRewriteActionParametersResponse", "sourcePattern");
            }
            this.sourcePattern = sourcePattern;
            return this;
        }
        @CustomType.Setter
        public Builder typeName(String typeName) {
            if (typeName == null) {
              throw new MissingRequiredPropertyException("UrlRewriteActionParametersResponse", "typeName");
            }
            this.typeName = typeName;
            return this;
        }
        public UrlRewriteActionParametersResponse build() {
            final var _resultValue = new UrlRewriteActionParametersResponse();
            _resultValue.destination = destination;
            _resultValue.preserveUnmatchedPath = preserveUnmatchedPath;
            _resultValue.sourcePattern = sourcePattern;
            _resultValue.typeName = typeName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy