// *** 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.ssoadmin.inputs;

import com.pulumi.aws.ssoadmin.inputs.PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs;
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 PermissionsBoundaryAttachmentPermissionsBoundaryArgs extends com.pulumi.resources.ResourceArgs {

    public static final PermissionsBoundaryAttachmentPermissionsBoundaryArgs Empty = new PermissionsBoundaryAttachmentPermissionsBoundaryArgs();

    /**
     * Specifies the name and path of a customer managed policy. See below.
     * 
     */
    @Import(name="customerManagedPolicyReference")
    private @Nullable Output<PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs> customerManagedPolicyReference;

    /**
     * @return Specifies the name and path of a customer managed policy. See below.
     * 
     */
    public Optional<Output<PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs>> customerManagedPolicyReference() {
        return Optional.ofNullable(this.customerManagedPolicyReference);
    }

    /**
     * AWS-managed IAM policy ARN to use as the permissions boundary.
     * 
     */
    @Import(name="managedPolicyArn")
    private @Nullable Output<String> managedPolicyArn;

    /**
     * @return AWS-managed IAM policy ARN to use as the permissions boundary.
     * 
     */
    public Optional<Output<String>> managedPolicyArn() {
        return Optional.ofNullable(this.managedPolicyArn);
    }

    private PermissionsBoundaryAttachmentPermissionsBoundaryArgs() {}

    private PermissionsBoundaryAttachmentPermissionsBoundaryArgs(PermissionsBoundaryAttachmentPermissionsBoundaryArgs $) {
        this.customerManagedPolicyReference = $.customerManagedPolicyReference;
        this.managedPolicyArn = $.managedPolicyArn;
    }

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

    public static final class Builder {
        private PermissionsBoundaryAttachmentPermissionsBoundaryArgs $;

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

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

        /**
         * @param customerManagedPolicyReference Specifies the name and path of a customer managed policy. See below.
         * 
         * @return builder
         * 
         */
        public Builder customerManagedPolicyReference(@Nullable Output<PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs> customerManagedPolicyReference) {
            $.customerManagedPolicyReference = customerManagedPolicyReference;
            return this;
        }

        /**
         * @param customerManagedPolicyReference Specifies the name and path of a customer managed policy. See below.
         * 
         * @return builder
         * 
         */
        public Builder customerManagedPolicyReference(PermissionsBoundaryAttachmentPermissionsBoundaryCustomerManagedPolicyReferenceArgs customerManagedPolicyReference) {
            return customerManagedPolicyReference(Output.of(customerManagedPolicyReference));
        }

        /**
         * @param managedPolicyArn AWS-managed IAM policy ARN to use as the permissions boundary.
         * 
         * @return builder
         * 
         */
        public Builder managedPolicyArn(@Nullable Output<String> managedPolicyArn) {
            $.managedPolicyArn = managedPolicyArn;
            return this;
        }

        /**
         * @param managedPolicyArn AWS-managed IAM policy ARN to use as the permissions boundary.
         * 
         * @return builder
         * 
         */
        public Builder managedPolicyArn(String managedPolicyArn) {
            return managedPolicyArn(Output.of(managedPolicyArn));
        }

        public PermissionsBoundaryAttachmentPermissionsBoundaryArgs build() {
            return $;
        }
    }

}
