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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;


public final class AlertManagerDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final AlertManagerDefinitionArgs Empty = new AlertManagerDefinitionArgs();

    /**
     * the alert manager definition that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html).
     * 
     */
    @Import(name="definition", required=true)
    private Output<String> definition;

    /**
     * @return the alert manager definition that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html).
     * 
     */
    public Output<String> definition() {
        return this.definition;
    }

    /**
     * ID of the prometheus workspace the alert manager definition should be linked to
     * 
     */
    @Import(name="workspaceId", required=true)
    private Output<String> workspaceId;

    /**
     * @return ID of the prometheus workspace the alert manager definition should be linked to
     * 
     */
    public Output<String> workspaceId() {
        return this.workspaceId;
    }

    private AlertManagerDefinitionArgs() {}

    private AlertManagerDefinitionArgs(AlertManagerDefinitionArgs $) {
        this.definition = $.definition;
        this.workspaceId = $.workspaceId;
    }

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

    public static final class Builder {
        private AlertManagerDefinitionArgs $;

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

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

        /**
         * @param definition the alert manager definition that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html).
         * 
         * @return builder
         * 
         */
        public Builder definition(Output<String> definition) {
            $.definition = definition;
            return this;
        }

        /**
         * @param definition the alert manager definition that you want to be applied. See more [in AWS Docs](https://docs.aws.amazon.com/prometheus/latest/userguide/AMP-alert-manager.html).
         * 
         * @return builder
         * 
         */
        public Builder definition(String definition) {
            return definition(Output.of(definition));
        }

        /**
         * @param workspaceId ID of the prometheus workspace the alert manager definition should be linked to
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(Output<String> workspaceId) {
            $.workspaceId = workspaceId;
            return this;
        }

        /**
         * @param workspaceId ID of the prometheus workspace the alert manager definition should be linked to
         * 
         * @return builder
         * 
         */
        public Builder workspaceId(String workspaceId) {
            return workspaceId(Output.of(workspaceId));
        }

        public AlertManagerDefinitionArgs build() {
            $.definition = Objects.requireNonNull($.definition, "expected parameter 'definition' to be non-null");
            $.workspaceId = Objects.requireNonNull($.workspaceId, "expected parameter 'workspaceId' to be non-null");
            return $;
        }
    }

}
