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

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

    public static final ResourcePolicyState Empty = new ResourcePolicyState();

    /**
     * The content of the resource policy being updated.
     * 
     */
    @Import(name="policy")
    private @Nullable Output policy;

    /**
     * @return The content of the resource policy being updated.
     * 
     */
    public Optional> policy() {
        return Optional.ofNullable(this.policy);
    }

    /**
     * The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
     * 
     */
    @Import(name="resourceArn")
    private @Nullable Output resourceArn;

    /**
     * @return The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
     * 
     */
    public Optional> resourceArn() {
        return Optional.ofNullable(this.resourceArn);
    }

    private ResourcePolicyState() {}

    private ResourcePolicyState(ResourcePolicyState $) {
        this.policy = $.policy;
        this.resourceArn = $.resourceArn;
    }

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

    public static final class Builder {
        private ResourcePolicyState $;

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

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

        /**
         * @param policy The content of the resource policy being updated.
         * 
         * @return builder
         * 
         */
        public Builder policy(@Nullable Output policy) {
            $.policy = policy;
            return this;
        }

        /**
         * @param policy The content of the resource policy being updated.
         * 
         * @return builder
         * 
         */
        public Builder policy(String policy) {
            return policy(Output.of(policy));
        }

        /**
         * @param resourceArn The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
         * 
         * @return builder
         * 
         */
        public Builder resourceArn(@Nullable Output resourceArn) {
            $.resourceArn = resourceArn;
            return this;
        }

        /**
         * @param resourceArn The Amazon Resource Name (ARN) of the account to create or update a resource policy for.
         * 
         * @return builder
         * 
         */
        public Builder resourceArn(String resourceArn) {
            return resourceArn(Output.of(resourceArn));
        }

        public ResourcePolicyState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy