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

com.pulumi.azurenative.awsconnector.inputs.AddOnArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.awsconnector.inputs;

import com.pulumi.azurenative.awsconnector.enums.AddOnStatus;
import com.pulumi.azurenative.awsconnector.inputs.AutoSnapshotAddOnArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Definition of AddOn
 * 
 */
public final class AddOnArgs extends com.pulumi.resources.ResourceArgs {

    public static final AddOnArgs Empty = new AddOnArgs();

    /**
     * The add-on type
     * 
     */
    @Import(name="addOnType")
    private @Nullable Output addOnType;

    /**
     * @return The add-on type
     * 
     */
    public Optional> addOnType() {
        return Optional.ofNullable(this.addOnType);
    }

    /**
     * An object that represents additional parameters when enabling or modifying the automatic snapshot add-on
     * 
     */
    @Import(name="autoSnapshotAddOnRequest")
    private @Nullable Output autoSnapshotAddOnRequest;

    /**
     * @return An object that represents additional parameters when enabling or modifying the automatic snapshot add-on
     * 
     */
    public Optional> autoSnapshotAddOnRequest() {
        return Optional.ofNullable(this.autoSnapshotAddOnRequest);
    }

    /**
     * Status of the Addon
     * 
     */
    @Import(name="status")
    private @Nullable Output> status;

    /**
     * @return Status of the Addon
     * 
     */
    public Optional>> status() {
        return Optional.ofNullable(this.status);
    }

    private AddOnArgs() {}

    private AddOnArgs(AddOnArgs $) {
        this.addOnType = $.addOnType;
        this.autoSnapshotAddOnRequest = $.autoSnapshotAddOnRequest;
        this.status = $.status;
    }

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

    public static final class Builder {
        private AddOnArgs $;

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

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

        /**
         * @param addOnType The add-on type
         * 
         * @return builder
         * 
         */
        public Builder addOnType(@Nullable Output addOnType) {
            $.addOnType = addOnType;
            return this;
        }

        /**
         * @param addOnType The add-on type
         * 
         * @return builder
         * 
         */
        public Builder addOnType(String addOnType) {
            return addOnType(Output.of(addOnType));
        }

        /**
         * @param autoSnapshotAddOnRequest An object that represents additional parameters when enabling or modifying the automatic snapshot add-on
         * 
         * @return builder
         * 
         */
        public Builder autoSnapshotAddOnRequest(@Nullable Output autoSnapshotAddOnRequest) {
            $.autoSnapshotAddOnRequest = autoSnapshotAddOnRequest;
            return this;
        }

        /**
         * @param autoSnapshotAddOnRequest An object that represents additional parameters when enabling or modifying the automatic snapshot add-on
         * 
         * @return builder
         * 
         */
        public Builder autoSnapshotAddOnRequest(AutoSnapshotAddOnArgs autoSnapshotAddOnRequest) {
            return autoSnapshotAddOnRequest(Output.of(autoSnapshotAddOnRequest));
        }

        /**
         * @param status Status of the Addon
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Status of the Addon
         * 
         * @return builder
         * 
         */
        public Builder status(Either status) {
            return status(Output.of(status));
        }

        /**
         * @param status Status of the Addon
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        /**
         * @param status Status of the Addon
         * 
         * @return builder
         * 
         */
        public Builder status(AddOnStatus status) {
            return status(Either.ofRight(status));
        }

        public AddOnArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy