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

com.pulumi.aws.networkmanager.AttachmentAccepterArgs Maven / Gradle / Ivy

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

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

    public static final AttachmentAccepterArgs Empty = new AttachmentAccepterArgs();

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

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

    /**
     * The type of attachment. Valid values can be found in the [AWS Documentation](https://docs.aws.amazon.com/networkmanager/latest/APIReference/API_ListAttachments.html#API_ListAttachments_RequestSyntax)
     * 
     */
    @Import(name="attachmentType", required=true)
    private Output attachmentType;

    /**
     * @return The type of attachment. Valid values can be found in the [AWS Documentation](https://docs.aws.amazon.com/networkmanager/latest/APIReference/API_ListAttachments.html#API_ListAttachments_RequestSyntax)
     * 
     */
    public Output attachmentType() {
        return this.attachmentType;
    }

    private AttachmentAccepterArgs() {}

    private AttachmentAccepterArgs(AttachmentAccepterArgs $) {
        this.attachmentId = $.attachmentId;
        this.attachmentType = $.attachmentType;
    }

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

    public static final class Builder {
        private AttachmentAccepterArgs $;

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

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

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

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

        /**
         * @param attachmentType The type of attachment. Valid values can be found in the [AWS Documentation](https://docs.aws.amazon.com/networkmanager/latest/APIReference/API_ListAttachments.html#API_ListAttachments_RequestSyntax)
         * 
         * @return builder
         * 
         */
        public Builder attachmentType(Output attachmentType) {
            $.attachmentType = attachmentType;
            return this;
        }

        /**
         * @param attachmentType The type of attachment. Valid values can be found in the [AWS Documentation](https://docs.aws.amazon.com/networkmanager/latest/APIReference/API_ListAttachments.html#API_ListAttachments_RequestSyntax)
         * 
         * @return builder
         * 
         */
        public Builder attachmentType(String attachmentType) {
            return attachmentType(Output.of(attachmentType));
        }

        public AttachmentAccepterArgs build() {
            if ($.attachmentId == null) {
                throw new MissingRequiredPropertyException("AttachmentAccepterArgs", "attachmentId");
            }
            if ($.attachmentType == null) {
                throw new MissingRequiredPropertyException("AttachmentAccepterArgs", "attachmentType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy