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

com.pulumi.googlenative.eventarc.v1beta1.inputs.CloudRunServiceArgs 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.eventarc.v1beta1.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;


/**
 * Represents a Cloud Run service destination.
 * 
 */
public final class CloudRunServiceArgs extends com.pulumi.resources.ResourceArgs {

    public static final CloudRunServiceArgs Empty = new CloudRunServiceArgs();

    /**
     * Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * The region the Cloud Run service is deployed in.
     * 
     */
    @Import(name="region", required=true)
    private Output region;

    /**
     * @return The region the Cloud Run service is deployed in.
     * 
     */
    public Output region() {
        return this.region;
    }

    /**
     * The name of the Cloud run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
     * 
     */
    @Import(name="service", required=true)
    private Output service;

    /**
     * @return The name of the Cloud run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
     * 
     */
    public Output service() {
        return this.service;
    }

    private CloudRunServiceArgs() {}

    private CloudRunServiceArgs(CloudRunServiceArgs $) {
        this.path = $.path;
        this.region = $.region;
        this.service = $.service;
    }

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

    public static final class Builder {
        private CloudRunServiceArgs $;

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

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

        /**
         * @param path Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path Optional. The relative path on the Cloud Run service the events should be sent to. The value must conform to the definition of URI path segment (section 3.3 of RFC2396). Examples: "/route", "route", "route/subroute".
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param region The region the Cloud Run service is deployed in.
         * 
         * @return builder
         * 
         */
        public Builder region(Output region) {
            $.region = region;
            return this;
        }

        /**
         * @param region The region the Cloud Run service is deployed in.
         * 
         * @return builder
         * 
         */
        public Builder region(String region) {
            return region(Output.of(region));
        }

        /**
         * @param service The name of the Cloud run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
         * 
         * @return builder
         * 
         */
        public Builder service(Output service) {
            $.service = service;
            return this;
        }

        /**
         * @param service The name of the Cloud run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
         * 
         * @return builder
         * 
         */
        public Builder service(String service) {
            return service(Output.of(service));
        }

        public CloudRunServiceArgs build() {
            $.region = Objects.requireNonNull($.region, "expected parameter 'region' to be non-null");
            $.service = Objects.requireNonNull($.service, "expected parameter 'service' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy