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

com.pulumi.spotinst.organization.inputs.ProgrammaticUserPolicyArgs Maven / Gradle / Ivy

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.spotinst.organization.inputs;

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


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

    public static final ProgrammaticUserPolicyArgs Empty = new ProgrammaticUserPolicyArgs();

    /**
     * A list of the accounts that the policy should be
     * enforced for the user.
     * 
     */
    @Import(name="policyAccountIds")
    private @Nullable Output> policyAccountIds;

    /**
     * @return A list of the accounts that the policy should be
     * enforced for the user.
     * 
     */
    public Optional>> policyAccountIds() {
        return Optional.ofNullable(this.policyAccountIds);
    }

    /**
     * Policy ID the programmatic user will have access to.
     * 
     */
    @Import(name="policyId", required=true)
    private Output policyId;

    /**
     * @return Policy ID the programmatic user will have access to.
     * 
     */
    public Output policyId() {
        return this.policyId;
    }

    private ProgrammaticUserPolicyArgs() {}

    private ProgrammaticUserPolicyArgs(ProgrammaticUserPolicyArgs $) {
        this.policyAccountIds = $.policyAccountIds;
        this.policyId = $.policyId;
    }

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

    public static final class Builder {
        private ProgrammaticUserPolicyArgs $;

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

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

        /**
         * @param policyAccountIds A list of the accounts that the policy should be
         * enforced for the user.
         * 
         * @return builder
         * 
         */
        public Builder policyAccountIds(@Nullable Output> policyAccountIds) {
            $.policyAccountIds = policyAccountIds;
            return this;
        }

        /**
         * @param policyAccountIds A list of the accounts that the policy should be
         * enforced for the user.
         * 
         * @return builder
         * 
         */
        public Builder policyAccountIds(List policyAccountIds) {
            return policyAccountIds(Output.of(policyAccountIds));
        }

        /**
         * @param policyAccountIds A list of the accounts that the policy should be
         * enforced for the user.
         * 
         * @return builder
         * 
         */
        public Builder policyAccountIds(String... policyAccountIds) {
            return policyAccountIds(List.of(policyAccountIds));
        }

        /**
         * @param policyId Policy ID the programmatic user will have access to.
         * 
         * @return builder
         * 
         */
        public Builder policyId(Output policyId) {
            $.policyId = policyId;
            return this;
        }

        /**
         * @param policyId Policy ID the programmatic user will have access to.
         * 
         * @return builder
         * 
         */
        public Builder policyId(String policyId) {
            return policyId(Output.of(policyId));
        }

        public ProgrammaticUserPolicyArgs build() {
            if ($.policyId == null) {
                throw new MissingRequiredPropertyException("ProgrammaticUserPolicyArgs", "policyId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy