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

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

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 global acceleration instance.
     * 
     */
    @Import(name="aclId", required=true)
    private Output aclId;

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

    /**
     * The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
     * 
     */
    @Import(name="entry", required=true)
    private Output entry;

    /**
     * @return The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
     * 
     */
    public Output entry() {
        return this.entry;
    }

    /**
     * The description of the entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
     * 
     */
    @Import(name="entryDescription")
    private @Nullable Output entryDescription;

    /**
     * @return The description of the entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
     * 
     */
    public Optional> entryDescription() {
        return Optional.ofNullable(this.entryDescription);
    }

    private AclEntryAttachmentArgs() {}

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

    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 global acceleration instance.
         * 
         * @return builder
         * 
         */
        public Builder aclId(Output aclId) {
            $.aclId = aclId;
            return this;
        }

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

        /**
         * @param entry The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
         * 
         * @return builder
         * 
         */
        public Builder entry(Output entry) {
            $.entry = entry;
            return this;
        }

        /**
         * @param entry The IP address(192.168.XX.XX) or CIDR(10.0.XX.XX/24) block that you want to add to the network ACL.
         * 
         * @return builder
         * 
         */
        public Builder entry(String entry) {
            return entry(Output.of(entry));
        }

        /**
         * @param entryDescription The description of the entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
         * 
         * @return builder
         * 
         */
        public Builder entryDescription(@Nullable Output entryDescription) {
            $.entryDescription = entryDescription;
            return this;
        }

        /**
         * @param entryDescription The description of the entry. The description must be 1 to 256 characters in length, and can contain letters, digits, hyphens (-), forward slashes (/), periods (.), and underscores (_).
         * 
         * @return builder
         * 
         */
        public Builder entryDescription(String entryDescription) {
            return entryDescription(Output.of(entryDescription));
        }

        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