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

com.pulumi.azurenative.insights.outputs.GetAutoscaleSettingResult 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.insights.outputs;

import com.pulumi.azurenative.insights.outputs.AutoscaleNotificationResponse;
import com.pulumi.azurenative.insights.outputs.AutoscaleProfileResponse;
import com.pulumi.azurenative.insights.outputs.PredictiveAutoscalePolicyResponse;
import com.pulumi.azurenative.insights.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetAutoscaleSettingResult {
    /**
     * @return the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'.
     * 
     */
    private @Nullable Boolean enabled;
    /**
     * @return Azure resource Id
     * 
     */
    private String id;
    /**
     * @return Resource location
     * 
     */
    private String location;
    /**
     * @return Azure resource name
     * 
     */
    private String name;
    /**
     * @return the collection of notifications.
     * 
     */
    private @Nullable List notifications;
    /**
     * @return the predictive autoscale policy mode.
     * 
     */
    private @Nullable PredictiveAutoscalePolicyResponse predictiveAutoscalePolicy;
    /**
     * @return the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.
     * 
     */
    private List profiles;
    /**
     * @return The system metadata related to the response.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return the location of the resource that the autoscale setting should be added to.
     * 
     */
    private @Nullable String targetResourceLocation;
    /**
     * @return the resource identifier of the resource that the autoscale setting should be added to.
     * 
     */
    private @Nullable String targetResourceUri;
    /**
     * @return Azure resource type
     * 
     */
    private String type;

    private GetAutoscaleSettingResult() {}
    /**
     * @return the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'false'.
     * 
     */
    public Optional enabled() {
        return Optional.ofNullable(this.enabled);
    }
    /**
     * @return Azure resource Id
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource location
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Azure resource name
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return the collection of notifications.
     * 
     */
    public List notifications() {
        return this.notifications == null ? List.of() : this.notifications;
    }
    /**
     * @return the predictive autoscale policy mode.
     * 
     */
    public Optional predictiveAutoscalePolicy() {
        return Optional.ofNullable(this.predictiveAutoscalePolicy);
    }
    /**
     * @return the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified.
     * 
     */
    public List profiles() {
        return this.profiles;
    }
    /**
     * @return The system metadata related to the response.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return the location of the resource that the autoscale setting should be added to.
     * 
     */
    public Optional targetResourceLocation() {
        return Optional.ofNullable(this.targetResourceLocation);
    }
    /**
     * @return the resource identifier of the resource that the autoscale setting should be added to.
     * 
     */
    public Optional targetResourceUri() {
        return Optional.ofNullable(this.targetResourceUri);
    }
    /**
     * @return Azure resource type
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetAutoscaleSettingResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean enabled;
        private String id;
        private String location;
        private String name;
        private @Nullable List notifications;
        private @Nullable PredictiveAutoscalePolicyResponse predictiveAutoscalePolicy;
        private List profiles;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private @Nullable String targetResourceLocation;
        private @Nullable String targetResourceUri;
        private String type;
        public Builder() {}
        public Builder(GetAutoscaleSettingResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enabled = defaults.enabled;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.notifications = defaults.notifications;
    	      this.predictiveAutoscalePolicy = defaults.predictiveAutoscalePolicy;
    	      this.profiles = defaults.profiles;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.targetResourceLocation = defaults.targetResourceLocation;
    	      this.targetResourceUri = defaults.targetResourceUri;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {

            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetAutoscaleSettingResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetAutoscaleSettingResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetAutoscaleSettingResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder notifications(@Nullable List notifications) {

            this.notifications = notifications;
            return this;
        }
        public Builder notifications(AutoscaleNotificationResponse... notifications) {
            return notifications(List.of(notifications));
        }
        @CustomType.Setter
        public Builder predictiveAutoscalePolicy(@Nullable PredictiveAutoscalePolicyResponse predictiveAutoscalePolicy) {

            this.predictiveAutoscalePolicy = predictiveAutoscalePolicy;
            return this;
        }
        @CustomType.Setter
        public Builder profiles(List profiles) {
            if (profiles == null) {
              throw new MissingRequiredPropertyException("GetAutoscaleSettingResult", "profiles");
            }
            this.profiles = profiles;
            return this;
        }
        public Builder profiles(AutoscaleProfileResponse... profiles) {
            return profiles(List.of(profiles));
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetAutoscaleSettingResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder targetResourceLocation(@Nullable String targetResourceLocation) {

            this.targetResourceLocation = targetResourceLocation;
            return this;
        }
        @CustomType.Setter
        public Builder targetResourceUri(@Nullable String targetResourceUri) {

            this.targetResourceUri = targetResourceUri;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetAutoscaleSettingResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetAutoscaleSettingResult build() {
            final var _resultValue = new GetAutoscaleSettingResult();
            _resultValue.enabled = enabled;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.notifications = notifications;
            _resultValue.predictiveAutoscalePolicy = predictiveAutoscalePolicy;
            _resultValue.profiles = profiles;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.targetResourceLocation = targetResourceLocation;
            _resultValue.targetResourceUri = targetResourceUri;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy