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

com.pulumi.gitlab.GroupSecurityPolicyAttachmentArgs 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.gitlab;

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


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

    public static final GroupSecurityPolicyAttachmentArgs Empty = new GroupSecurityPolicyAttachmentArgs();

    /**
     * The ID or Full Path of the group which will have the security policy project assigned to it.
     * 
     */
    @Import(name="group", required=true)
    private Output group;

    /**
     * @return The ID or Full Path of the group which will have the security policy project assigned to it.
     * 
     */
    public Output group() {
        return this.group;
    }

    /**
     * The ID or Full Path of the security policy project.
     * 
     */
    @Import(name="policyProject", required=true)
    private Output policyProject;

    /**
     * @return The ID or Full Path of the security policy project.
     * 
     */
    public Output policyProject() {
        return this.policyProject;
    }

    private GroupSecurityPolicyAttachmentArgs() {}

    private GroupSecurityPolicyAttachmentArgs(GroupSecurityPolicyAttachmentArgs $) {
        this.group = $.group;
        this.policyProject = $.policyProject;
    }

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

    public static final class Builder {
        private GroupSecurityPolicyAttachmentArgs $;

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

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

        /**
         * @param group The ID or Full Path of the group which will have the security policy project assigned to it.
         * 
         * @return builder
         * 
         */
        public Builder group(Output group) {
            $.group = group;
            return this;
        }

        /**
         * @param group The ID or Full Path of the group which will have the security policy project assigned to it.
         * 
         * @return builder
         * 
         */
        public Builder group(String group) {
            return group(Output.of(group));
        }

        /**
         * @param policyProject The ID or Full Path of the security policy project.
         * 
         * @return builder
         * 
         */
        public Builder policyProject(Output policyProject) {
            $.policyProject = policyProject;
            return this;
        }

        /**
         * @param policyProject The ID or Full Path of the security policy project.
         * 
         * @return builder
         * 
         */
        public Builder policyProject(String policyProject) {
            return policyProject(Output.of(policyProject));
        }

        public GroupSecurityPolicyAttachmentArgs build() {
            if ($.group == null) {
                throw new MissingRequiredPropertyException("GroupSecurityPolicyAttachmentArgs", "group");
            }
            if ($.policyProject == null) {
                throw new MissingRequiredPropertyException("GroupSecurityPolicyAttachmentArgs", "policyProject");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy