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

com.pulumi.aws.apigateway.inputs.RestApiPolicyState 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.aws.apigateway.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 RestApiPolicyState extends com.pulumi.resources.ResourceArgs {

    public static final RestApiPolicyState Empty = new RestApiPolicyState();

    /**
     * JSON formatted policy document that controls access to the API Gateway.
     * 
     */
    @Import(name="policy")
    private @Nullable Output policy;

    /**
     * @return JSON formatted policy document that controls access to the API Gateway.
     * 
     */
    public Optional> policy() {
        return Optional.ofNullable(this.policy);
    }

    /**
     * ID of the REST API.
     * 
     */
    @Import(name="restApiId")
    private @Nullable Output restApiId;

    /**
     * @return ID of the REST API.
     * 
     */
    public Optional> restApiId() {
        return Optional.ofNullable(this.restApiId);
    }

    private RestApiPolicyState() {}

    private RestApiPolicyState(RestApiPolicyState $) {
        this.policy = $.policy;
        this.restApiId = $.restApiId;
    }

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

    public static final class Builder {
        private RestApiPolicyState $;

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

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

        /**
         * @param policy JSON formatted policy document that controls access to the API Gateway.
         * 
         * @return builder
         * 
         */
        public Builder policy(@Nullable Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy JSON formatted policy document that controls access to the API Gateway.
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        /**
         * @param restApiId ID of the REST API.
         * 
         * @return builder
         * 
         */
        public Builder restApiId(@Nullable Output restApiId) {
            $.restApiId = restApiId;
            return this;
        }

        /**
         * @param restApiId ID of the REST API.
         * 
         * @return builder
         * 
         */
        public Builder restApiId(String restApiId) {
            return restApiId(Output.of(restApiId));
        }

        public RestApiPolicyState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy