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

com.pulumi.alicloud.cr.EndpointAclPolicyArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
Show 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.alicloud.cr;

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 EndpointAclPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final EndpointAclPolicyArgs Empty = new EndpointAclPolicyArgs();

    /**
     * The description of the entry.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The description of the entry.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The type of endpoint. Valid values: `internet`.
     * 
     */
    @Import(name="endpointType", required=true)
    private Output endpointType;

    /**
     * @return The type of endpoint. Valid values: `internet`.
     * 
     */
    public Output endpointType() {
        return this.endpointType;
    }

    /**
     * The IP segment that allowed to access.
     * 
     */
    @Import(name="entry", required=true)
    private Output entry;

    /**
     * @return The IP segment that allowed to access.
     * 
     */
    public Output entry() {
        return this.entry;
    }

    /**
     * The ID of the CR Instance.
     * 
     */
    @Import(name="instanceId", required=true)
    private Output instanceId;

    /**
     * @return The ID of the CR Instance.
     * 
     */
    public Output instanceId() {
        return this.instanceId;
    }

    /**
     * The module that needs to set the access policy. Valid values: `Registry`.
     * 
     */
    @Import(name="moduleName")
    private @Nullable Output moduleName;

    /**
     * @return The module that needs to set the access policy. Valid values: `Registry`.
     * 
     */
    public Optional> moduleName() {
        return Optional.ofNullable(this.moduleName);
    }

    private EndpointAclPolicyArgs() {}

    private EndpointAclPolicyArgs(EndpointAclPolicyArgs $) {
        this.description = $.description;
        this.endpointType = $.endpointType;
        this.entry = $.entry;
        this.instanceId = $.instanceId;
        this.moduleName = $.moduleName;
    }

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

    public static final class Builder {
        private EndpointAclPolicyArgs $;

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

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

        /**
         * @param description The description of the entry.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The description of the entry.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param endpointType The type of endpoint. Valid values: `internet`.
         * 
         * @return builder
         * 
         */
        public Builder endpointType(Output endpointType) {
            $.endpointType = endpointType;
            return this;
        }

        /**
         * @param endpointType The type of endpoint. Valid values: `internet`.
         * 
         * @return builder
         * 
         */
        public Builder endpointType(String endpointType) {
            return endpointType(Output.of(endpointType));
        }

        /**
         * @param entry The IP segment that allowed to access.
         * 
         * @return builder
         * 
         */
        public Builder entry(Output entry) {
            $.entry = entry;
            return this;
        }

        /**
         * @param entry The IP segment that allowed to access.
         * 
         * @return builder
         * 
         */
        public Builder entry(String entry) {
            return entry(Output.of(entry));
        }

        /**
         * @param instanceId The ID of the CR Instance.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(Output instanceId) {
            $.instanceId = instanceId;
            return this;
        }

        /**
         * @param instanceId The ID of the CR Instance.
         * 
         * @return builder
         * 
         */
        public Builder instanceId(String instanceId) {
            return instanceId(Output.of(instanceId));
        }

        /**
         * @param moduleName The module that needs to set the access policy. Valid values: `Registry`.
         * 
         * @return builder
         * 
         */
        public Builder moduleName(@Nullable Output moduleName) {
            $.moduleName = moduleName;
            return this;
        }

        /**
         * @param moduleName The module that needs to set the access policy. Valid values: `Registry`.
         * 
         * @return builder
         * 
         */
        public Builder moduleName(String moduleName) {
            return moduleName(Output.of(moduleName));
        }

        public EndpointAclPolicyArgs build() {
            if ($.endpointType == null) {
                throw new MissingRequiredPropertyException("EndpointAclPolicyArgs", "endpointType");
            }
            if ($.entry == null) {
                throw new MissingRequiredPropertyException("EndpointAclPolicyArgs", "entry");
            }
            if ($.instanceId == null) {
                throw new MissingRequiredPropertyException("EndpointAclPolicyArgs", "instanceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy