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

com.pulumi.alicloud.arms.inputs.SyntheticTaskState 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.arms.inputs;

import com.pulumi.alicloud.arms.inputs.SyntheticTaskAvailableAssertionArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskCommonSettingArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskCustomPeriodArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorArgs;
import com.pulumi.alicloud.arms.inputs.SyntheticTaskMonitorConfArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SyntheticTaskState Empty = new SyntheticTaskState();

    /**
     * Assertion List. See `available_assertions` below.
     * 
     */
    @Import(name="availableAssertions")
    private @Nullable Output> availableAssertions;

    /**
     * @return Assertion List. See `available_assertions` below.
     * 
     */
    public Optional>> availableAssertions() {
        return Optional.ofNullable(this.availableAssertions);
    }

    /**
     * Common settings. See `common_setting` below.
     * 
     */
    @Import(name="commonSetting")
    private @Nullable Output commonSetting;

    /**
     * @return Common settings. See `common_setting` below.
     * 
     */
    public Optional> commonSetting() {
        return Optional.ofNullable(this.commonSetting);
    }

    /**
     * Custom Cycle. See `custom_period` below.
     * 
     */
    @Import(name="customPeriod")
    private @Nullable Output customPeriod;

    /**
     * @return Custom Cycle. See `custom_period` below.
     * 
     */
    public Optional> customPeriod() {
        return Optional.ofNullable(this.customPeriod);
    }

    /**
     * Frequency.
     * 
     */
    @Import(name="frequency")
    private @Nullable Output frequency;

    /**
     * @return Frequency.
     * 
     */
    public Optional> frequency() {
        return Optional.ofNullable(this.frequency);
    }

    /**
     * Classification of selected monitors.
     * 
     */
    @Import(name="monitorCategory")
    private @Nullable Output monitorCategory;

    /**
     * @return Classification of selected monitors.
     * 
     */
    public Optional> monitorCategory() {
        return Optional.ofNullable(this.monitorCategory);
    }

    /**
     * Monitoring configuration. See `monitor_conf` below.
     * 
     */
    @Import(name="monitorConf")
    private @Nullable Output monitorConf;

    /**
     * @return Monitoring configuration. See `monitor_conf` below.
     * 
     */
    public Optional> monitorConf() {
        return Optional.ofNullable(this.monitorConf);
    }

    /**
     * List of selected monitors. See `monitors` below.
     * 
     */
    @Import(name="monitors")
    private @Nullable Output> monitors;

    /**
     * @return List of selected monitors. See `monitors` below.
     * 
     */
    public Optional>> monitors() {
        return Optional.ofNullable(this.monitors);
    }

    /**
     * Describes which resource group the resource belongs.
     * 
     */
    @Import(name="resourceGroupId")
    private @Nullable Output resourceGroupId;

    /**
     * @return Describes which resource group the resource belongs.
     * 
     */
    public Optional> resourceGroupId() {
        return Optional.ofNullable(this.resourceGroupId);
    }

    /**
     * task status.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return task status.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * The name of synthetic task.
     * 
     */
    @Import(name="syntheticTaskName")
    private @Nullable Output syntheticTaskName;

    /**
     * @return The name of synthetic task.
     * 
     */
    public Optional> syntheticTaskName() {
        return Optional.ofNullable(this.syntheticTaskName);
    }

    /**
     * The list of tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The list of tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The type of synthetic task.
     * 
     */
    @Import(name="taskType")
    private @Nullable Output taskType;

    /**
     * @return The type of synthetic task.
     * 
     */
    public Optional> taskType() {
        return Optional.ofNullable(this.taskType);
    }

    private SyntheticTaskState() {}

    private SyntheticTaskState(SyntheticTaskState $) {
        this.availableAssertions = $.availableAssertions;
        this.commonSetting = $.commonSetting;
        this.customPeriod = $.customPeriod;
        this.frequency = $.frequency;
        this.monitorCategory = $.monitorCategory;
        this.monitorConf = $.monitorConf;
        this.monitors = $.monitors;
        this.resourceGroupId = $.resourceGroupId;
        this.status = $.status;
        this.syntheticTaskName = $.syntheticTaskName;
        this.tags = $.tags;
        this.taskType = $.taskType;
    }

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

    public static final class Builder {
        private SyntheticTaskState $;

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

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

        /**
         * @param availableAssertions Assertion List. See `available_assertions` below.
         * 
         * @return builder
         * 
         */
        public Builder availableAssertions(@Nullable Output> availableAssertions) {
            $.availableAssertions = availableAssertions;
            return this;
        }

        /**
         * @param availableAssertions Assertion List. See `available_assertions` below.
         * 
         * @return builder
         * 
         */
        public Builder availableAssertions(List availableAssertions) {
            return availableAssertions(Output.of(availableAssertions));
        }

        /**
         * @param availableAssertions Assertion List. See `available_assertions` below.
         * 
         * @return builder
         * 
         */
        public Builder availableAssertions(SyntheticTaskAvailableAssertionArgs... availableAssertions) {
            return availableAssertions(List.of(availableAssertions));
        }

        /**
         * @param commonSetting Common settings. See `common_setting` below.
         * 
         * @return builder
         * 
         */
        public Builder commonSetting(@Nullable Output commonSetting) {
            $.commonSetting = commonSetting;
            return this;
        }

        /**
         * @param commonSetting Common settings. See `common_setting` below.
         * 
         * @return builder
         * 
         */
        public Builder commonSetting(SyntheticTaskCommonSettingArgs commonSetting) {
            return commonSetting(Output.of(commonSetting));
        }

        /**
         * @param customPeriod Custom Cycle. See `custom_period` below.
         * 
         * @return builder
         * 
         */
        public Builder customPeriod(@Nullable Output customPeriod) {
            $.customPeriod = customPeriod;
            return this;
        }

        /**
         * @param customPeriod Custom Cycle. See `custom_period` below.
         * 
         * @return builder
         * 
         */
        public Builder customPeriod(SyntheticTaskCustomPeriodArgs customPeriod) {
            return customPeriod(Output.of(customPeriod));
        }

        /**
         * @param frequency Frequency.
         * 
         * @return builder
         * 
         */
        public Builder frequency(@Nullable Output frequency) {
            $.frequency = frequency;
            return this;
        }

        /**
         * @param frequency Frequency.
         * 
         * @return builder
         * 
         */
        public Builder frequency(String frequency) {
            return frequency(Output.of(frequency));
        }

        /**
         * @param monitorCategory Classification of selected monitors.
         * 
         * @return builder
         * 
         */
        public Builder monitorCategory(@Nullable Output monitorCategory) {
            $.monitorCategory = monitorCategory;
            return this;
        }

        /**
         * @param monitorCategory Classification of selected monitors.
         * 
         * @return builder
         * 
         */
        public Builder monitorCategory(Integer monitorCategory) {
            return monitorCategory(Output.of(monitorCategory));
        }

        /**
         * @param monitorConf Monitoring configuration. See `monitor_conf` below.
         * 
         * @return builder
         * 
         */
        public Builder monitorConf(@Nullable Output monitorConf) {
            $.monitorConf = monitorConf;
            return this;
        }

        /**
         * @param monitorConf Monitoring configuration. See `monitor_conf` below.
         * 
         * @return builder
         * 
         */
        public Builder monitorConf(SyntheticTaskMonitorConfArgs monitorConf) {
            return monitorConf(Output.of(monitorConf));
        }

        /**
         * @param monitors List of selected monitors. See `monitors` below.
         * 
         * @return builder
         * 
         */
        public Builder monitors(@Nullable Output> monitors) {
            $.monitors = monitors;
            return this;
        }

        /**
         * @param monitors List of selected monitors. See `monitors` below.
         * 
         * @return builder
         * 
         */
        public Builder monitors(List monitors) {
            return monitors(Output.of(monitors));
        }

        /**
         * @param monitors List of selected monitors. See `monitors` below.
         * 
         * @return builder
         * 
         */
        public Builder monitors(SyntheticTaskMonitorArgs... monitors) {
            return monitors(List.of(monitors));
        }

        /**
         * @param resourceGroupId Describes which resource group the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupId(@Nullable Output resourceGroupId) {
            $.resourceGroupId = resourceGroupId;
            return this;
        }

        /**
         * @param resourceGroupId Describes which resource group the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupId(String resourceGroupId) {
            return resourceGroupId(Output.of(resourceGroupId));
        }

        /**
         * @param status task status.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status task status.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param syntheticTaskName The name of synthetic task.
         * 
         * @return builder
         * 
         */
        public Builder syntheticTaskName(@Nullable Output syntheticTaskName) {
            $.syntheticTaskName = syntheticTaskName;
            return this;
        }

        /**
         * @param syntheticTaskName The name of synthetic task.
         * 
         * @return builder
         * 
         */
        public Builder syntheticTaskName(String syntheticTaskName) {
            return syntheticTaskName(Output.of(syntheticTaskName));
        }

        /**
         * @param tags The list of tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags The list of tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param taskType The type of synthetic task.
         * 
         * @return builder
         * 
         */
        public Builder taskType(@Nullable Output taskType) {
            $.taskType = taskType;
            return this;
        }

        /**
         * @param taskType The type of synthetic task.
         * 
         * @return builder
         * 
         */
        public Builder taskType(Integer taskType) {
            return taskType(Output.of(taskType));
        }

        public SyntheticTaskState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy