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

com.pulumi.aws.cloudfront.inputs.GetFunctionPlainArgs 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.cloudfront.inputs;

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


public final class GetFunctionPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetFunctionPlainArgs Empty = new GetFunctionPlainArgs();

    /**
     * Name of the CloudFront function.
     * 
     */
    @Import(name="name", required=true)
    private String name;

    /**
     * @return Name of the CloudFront function.
     * 
     */
    public String name() {
        return this.name;
    }

    /**
     * Function’s stage, either `DEVELOPMENT` or `LIVE`.
     * 
     */
    @Import(name="stage", required=true)
    private String stage;

    /**
     * @return Function’s stage, either `DEVELOPMENT` or `LIVE`.
     * 
     */
    public String stage() {
        return this.stage;
    }

    private GetFunctionPlainArgs() {}

    private GetFunctionPlainArgs(GetFunctionPlainArgs $) {
        this.name = $.name;
        this.stage = $.stage;
    }

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

    public static final class Builder {
        private GetFunctionPlainArgs $;

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

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

        /**
         * @param name Name of the CloudFront function.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            $.name = name;
            return this;
        }

        /**
         * @param stage Function’s stage, either `DEVELOPMENT` or `LIVE`.
         * 
         * @return builder
         * 
         */
        public Builder stage(String stage) {
            $.stage = stage;
            return this;
        }

        public GetFunctionPlainArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("GetFunctionPlainArgs", "name");
            }
            if ($.stage == null) {
                throw new MissingRequiredPropertyException("GetFunctionPlainArgs", "stage");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy