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

com.pulumi.aws.verifiedpermissions.PolicyTemplateArgs 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.verifiedpermissions;

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


public final class PolicyTemplateArgs extends com.pulumi.resources.ResourceArgs {

    public static final PolicyTemplateArgs Empty = new PolicyTemplateArgs();

    /**
     * Provides a description for the policy template.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Provides a description for the policy template.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The ID of the Policy Store.
     * 
     */
    @Import(name="policyStoreId", required=true)
    private Output policyStoreId;

    /**
     * @return The ID of the Policy Store.
     * 
     */
    public Output policyStoreId() {
        return this.policyStoreId;
    }

    /**
     * Defines the content of the statement, written in Cedar policy language.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="statement", required=true)
    private Output statement;

    /**
     * @return Defines the content of the statement, written in Cedar policy language.
     * 
     * The following arguments are optional:
     * 
     */
    public Output statement() {
        return this.statement;
    }

    private PolicyTemplateArgs() {}

    private PolicyTemplateArgs(PolicyTemplateArgs $) {
        this.description = $.description;
        this.policyStoreId = $.policyStoreId;
        this.statement = $.statement;
    }

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

    public static final class Builder {
        private PolicyTemplateArgs $;

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

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

        /**
         * @param description Provides a description for the policy template.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Provides a description for the policy template.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param policyStoreId The ID of the Policy Store.
         * 
         * @return builder
         * 
         */
        public Builder policyStoreId(Output policyStoreId) {
            $.policyStoreId = policyStoreId;
            return this;
        }

        /**
         * @param policyStoreId The ID of the Policy Store.
         * 
         * @return builder
         * 
         */
        public Builder policyStoreId(String policyStoreId) {
            return policyStoreId(Output.of(policyStoreId));
        }

        /**
         * @param statement Defines the content of the statement, written in Cedar policy language.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder statement(Output statement) {
            $.statement = statement;
            return this;
        }

        /**
         * @param statement Defines the content of the statement, written in Cedar policy language.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder statement(String statement) {
            return statement(Output.of(statement));
        }

        public PolicyTemplateArgs build() {
            if ($.policyStoreId == null) {
                throw new MissingRequiredPropertyException("PolicyTemplateArgs", "policyStoreId");
            }
            if ($.statement == null) {
                throw new MissingRequiredPropertyException("PolicyTemplateArgs", "statement");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy