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

com.pulumi.alicloud.fc.outputs.GetCustomDomainsDomainRouteConfig Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.fc.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetCustomDomainsDomainRouteConfig {
    /**
     * @return The name of the Function Compute function that requests are routed to.
     * 
     */
    private String functionName;
    /**
     * @return The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.
     * 
     */
    private List methods;
    /**
     * @return The path that requests are routed from.
     * 
     */
    private String path;
    /**
     * @return The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service.
     * 
     */
    private String qualifier;
    /**
     * @return The name of the Function Compute service that requests are routed to.
     * 
     */
    private String serviceName;

    private GetCustomDomainsDomainRouteConfig() {}
    /**
     * @return The name of the Function Compute function that requests are routed to.
     * 
     */
    public String functionName() {
        return this.functionName;
    }
    /**
     * @return The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.
     * 
     */
    public List methods() {
        return this.methods;
    }
    /**
     * @return The path that requests are routed from.
     * 
     */
    public String path() {
        return this.path;
    }
    /**
     * @return The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service.
     * 
     */
    public String qualifier() {
        return this.qualifier;
    }
    /**
     * @return The name of the Function Compute service that requests are routed to.
     * 
     */
    public String serviceName() {
        return this.serviceName;
    }

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

    public static Builder builder(GetCustomDomainsDomainRouteConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String functionName;
        private List methods;
        private String path;
        private String qualifier;
        private String serviceName;
        public Builder() {}
        public Builder(GetCustomDomainsDomainRouteConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.functionName = defaults.functionName;
    	      this.methods = defaults.methods;
    	      this.path = defaults.path;
    	      this.qualifier = defaults.qualifier;
    	      this.serviceName = defaults.serviceName;
        }

        @CustomType.Setter
        public Builder functionName(String functionName) {
            if (functionName == null) {
              throw new MissingRequiredPropertyException("GetCustomDomainsDomainRouteConfig", "functionName");
            }
            this.functionName = functionName;
            return this;
        }
        @CustomType.Setter
        public Builder methods(List methods) {
            if (methods == null) {
              throw new MissingRequiredPropertyException("GetCustomDomainsDomainRouteConfig", "methods");
            }
            this.methods = methods;
            return this;
        }
        public Builder methods(String... methods) {
            return methods(List.of(methods));
        }
        @CustomType.Setter
        public Builder path(String path) {
            if (path == null) {
              throw new MissingRequiredPropertyException("GetCustomDomainsDomainRouteConfig", "path");
            }
            this.path = path;
            return this;
        }
        @CustomType.Setter
        public Builder qualifier(String qualifier) {
            if (qualifier == null) {
              throw new MissingRequiredPropertyException("GetCustomDomainsDomainRouteConfig", "qualifier");
            }
            this.qualifier = qualifier;
            return this;
        }
        @CustomType.Setter
        public Builder serviceName(String serviceName) {
            if (serviceName == null) {
              throw new MissingRequiredPropertyException("GetCustomDomainsDomainRouteConfig", "serviceName");
            }
            this.serviceName = serviceName;
            return this;
        }
        public GetCustomDomainsDomainRouteConfig build() {
            final var _resultValue = new GetCustomDomainsDomainRouteConfig();
            _resultValue.functionName = functionName;
            _resultValue.methods = methods;
            _resultValue.path = path;
            _resultValue.qualifier = qualifier;
            _resultValue.serviceName = serviceName;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy