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

com.pulumi.azure.newrelic.inputs.MonitorState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.newrelic.inputs;

import com.pulumi.azure.newrelic.inputs.MonitorIdentityArgs;
import com.pulumi.azure.newrelic.inputs.MonitorPlanArgs;
import com.pulumi.azure.newrelic.inputs.MonitorUserArgs;
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;


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

    public static final MonitorState Empty = new MonitorState();

    /**
     * Specifies the source of account creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    @Import(name="accountCreationSource")
    private @Nullable Output accountCreationSource;

    /**
     * @return Specifies the source of account creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    public Optional> accountCreationSource() {
        return Optional.ofNullable(this.accountCreationSource);
    }

    /**
     * Specifies the account id. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     * > **NOTE:** The value of `account_id` must come from an Azure Native New Relic Monitor instance of another different subscription.
     * 
     */
    @Import(name="accountId")
    private @Nullable Output accountId;

    /**
     * @return Specifies the account id. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     * > **NOTE:** The value of `account_id` must come from an Azure Native New Relic Monitor instance of another different subscription.
     * 
     */
    public Optional> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * An `identity` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return An `identity` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Specifies the ingestion key of account. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    @Import(name="ingestionKey")
    private @Nullable Output ingestionKey;

    /**
     * @return Specifies the ingestion key of account. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    public Optional> ingestionKey() {
        return Optional.ofNullable(this.ingestionKey);
    }

    /**
     * Specifies the Azure Region where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Specifies the Azure Region where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Specifies the name which should be used for this Azure Native New Relic Monitor. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name which should be used for this Azure Native New Relic Monitor. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specifies the source of org creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    @Import(name="orgCreationSource")
    private @Nullable Output orgCreationSource;

    /**
     * @return Specifies the source of org creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    public Optional> orgCreationSource() {
        return Optional.ofNullable(this.orgCreationSource);
    }

    /**
     * Specifies the organization id. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     * > **NOTE:** The value of `organization_id` must come from an Azure Native New Relic Monitor instance of another different subscription.
     * 
     */
    @Import(name="organizationId")
    private @Nullable Output organizationId;

    /**
     * @return Specifies the organization id. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     * > **NOTE:** The value of `organization_id` must come from an Azure Native New Relic Monitor instance of another different subscription.
     * 
     */
    public Optional> organizationId() {
        return Optional.ofNullable(this.organizationId);
    }

    /**
     * A `plan` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    @Import(name="plan")
    private @Nullable Output plan;

    /**
     * @return A `plan` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    public Optional> plan() {
        return Optional.ofNullable(this.plan);
    }

    /**
     * Specifies the name of the Resource Group where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output resourceGroupName;

    /**
     * @return Specifies the name of the Resource Group where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    public Optional> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * A `user` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    @Import(name="user")
    private @Nullable Output user;

    /**
     * @return A `user` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    public Optional> user() {
        return Optional.ofNullable(this.user);
    }

    /**
     * Specifies the user id. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    @Import(name="userId")
    private @Nullable Output userId;

    /**
     * @return Specifies the user id. Changing this forces a new Azure Native New Relic Monitor to be created.
     * 
     */
    public Optional> userId() {
        return Optional.ofNullable(this.userId);
    }

    private MonitorState() {}

    private MonitorState(MonitorState $) {
        this.accountCreationSource = $.accountCreationSource;
        this.accountId = $.accountId;
        this.identity = $.identity;
        this.ingestionKey = $.ingestionKey;
        this.location = $.location;
        this.name = $.name;
        this.orgCreationSource = $.orgCreationSource;
        this.organizationId = $.organizationId;
        this.plan = $.plan;
        this.resourceGroupName = $.resourceGroupName;
        this.user = $.user;
        this.userId = $.userId;
    }

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

    public static final class Builder {
        private MonitorState $;

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

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

        /**
         * @param accountCreationSource Specifies the source of account creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder accountCreationSource(@Nullable Output accountCreationSource) {
            $.accountCreationSource = accountCreationSource;
            return this;
        }

        /**
         * @param accountCreationSource Specifies the source of account creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder accountCreationSource(String accountCreationSource) {
            return accountCreationSource(Output.of(accountCreationSource));
        }

        /**
         * @param accountId Specifies the account id. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * > **NOTE:** The value of `account_id` must come from an Azure Native New Relic Monitor instance of another different subscription.
         * 
         * @return builder
         * 
         */
        public Builder accountId(@Nullable Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId Specifies the account id. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * > **NOTE:** The value of `account_id` must come from an Azure Native New Relic Monitor instance of another different subscription.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param identity An `identity` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity An `identity` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder identity(MonitorIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param ingestionKey Specifies the ingestion key of account. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder ingestionKey(@Nullable Output ingestionKey) {
            $.ingestionKey = ingestionKey;
            return this;
        }

        /**
         * @param ingestionKey Specifies the ingestion key of account. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder ingestionKey(String ingestionKey) {
            return ingestionKey(Output.of(ingestionKey));
        }

        /**
         * @param location Specifies the Azure Region where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the Azure Region where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name Specifies the name which should be used for this Azure Native New Relic Monitor. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name which should be used for this Azure Native New Relic Monitor. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param orgCreationSource Specifies the source of org creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder orgCreationSource(@Nullable Output orgCreationSource) {
            $.orgCreationSource = orgCreationSource;
            return this;
        }

        /**
         * @param orgCreationSource Specifies the source of org creation. Possible values are `LIFTR` and `NEWRELIC`. Defaults to `LIFTR`. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder orgCreationSource(String orgCreationSource) {
            return orgCreationSource(Output.of(orgCreationSource));
        }

        /**
         * @param organizationId Specifies the organization id. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * > **NOTE:** The value of `organization_id` must come from an Azure Native New Relic Monitor instance of another different subscription.
         * 
         * @return builder
         * 
         */
        public Builder organizationId(@Nullable Output organizationId) {
            $.organizationId = organizationId;
            return this;
        }

        /**
         * @param organizationId Specifies the organization id. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * > **NOTE:** The value of `organization_id` must come from an Azure Native New Relic Monitor instance of another different subscription.
         * 
         * @return builder
         * 
         */
        public Builder organizationId(String organizationId) {
            return organizationId(Output.of(organizationId));
        }

        /**
         * @param plan A `plan` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder plan(@Nullable Output plan) {
            $.plan = plan;
            return this;
        }

        /**
         * @param plan A `plan` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder plan(MonitorPlanArgs plan) {
            return plan(Output.of(plan));
        }

        /**
         * @param resourceGroupName Specifies the name of the Resource Group where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Specifies the name of the Resource Group where the Azure Native New Relic Monitor should exist. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param user A `user` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder user(@Nullable Output user) {
            $.user = user;
            return this;
        }

        /**
         * @param user A `user` block as defined below. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder user(MonitorUserArgs user) {
            return user(Output.of(user));
        }

        /**
         * @param userId Specifies the user id. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder userId(@Nullable Output userId) {
            $.userId = userId;
            return this;
        }

        /**
         * @param userId Specifies the user id. Changing this forces a new Azure Native New Relic Monitor to be created.
         * 
         * @return builder
         * 
         */
        public Builder userId(String userId) {
            return userId(Output.of(userId));
        }

        public MonitorState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy