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

com.pulumi.alicloud.alb.AclEntryAttachmentArgs 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.alb;

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

    public static final AclEntryAttachmentArgs Empty = new AclEntryAttachmentArgs();

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

    /**
     * @return The ID of the Acl.
     * 
     */
    public Output aclId() {
        return this.aclId;
    }

    /**
     * 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 CIDR blocks.
     * 
     */
    @Import(name="entry", required=true)
    private Output entry;

    /**
     * @return The CIDR blocks.
     * 
     */
    public Output entry() {
        return this.entry;
    }

    private AclEntryAttachmentArgs() {}

    private AclEntryAttachmentArgs(AclEntryAttachmentArgs $) {
        this.aclId = $.aclId;
        this.description = $.description;
        this.entry = $.entry;
    }

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

    public static final class Builder {
        private AclEntryAttachmentArgs $;

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

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

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

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

        /**
         * @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 entry The CIDR blocks.
         * 
         * @return builder
         * 
         */
        public Builder entry(Output entry) {
            $.entry = entry;
            return this;
        }

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

        public AclEntryAttachmentArgs build() {
            if ($.aclId == null) {
                throw new MissingRequiredPropertyException("AclEntryAttachmentArgs", "aclId");
            }
            if ($.entry == null) {
                throw new MissingRequiredPropertyException("AclEntryAttachmentArgs", "entry");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy