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

com.pulumi.azurenative.insights.outputs.GetGuestDiagnosticsSettingResult Maven / Gradle / Ivy

// *** 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.DataSourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
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 GetGuestDiagnosticsSettingResult {
    /**
     * @return the array of data source object which are configured to collect and send data
     * 
     */
    private @Nullable List dataSources;
    /**
     * @return Azure resource Id
     * 
     */
    private String id;
    /**
     * @return Resource location
     * 
     */
    private String location;
    /**
     * @return Azure resource name
     * 
     */
    private String name;
    /**
     * @return Operating system type for the configuration
     * 
     */
    private @Nullable String osType;
    private @Nullable String proxySetting;
    /**
     * @return Resource tags
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Azure resource type
     * 
     */
    private String type;

    private GetGuestDiagnosticsSettingResult() {}
    /**
     * @return the array of data source object which are configured to collect and send data
     * 
     */
    public List dataSources() {
        return this.dataSources == null ? List.of() : this.dataSources;
    }
    /**
     * @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 Operating system type for the configuration
     * 
     */
    public Optional osType() {
        return Optional.ofNullable(this.osType);
    }
    public Optional proxySetting() {
        return Optional.ofNullable(this.proxySetting);
    }
    /**
     * @return Resource tags
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Azure resource type
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetGuestDiagnosticsSettingResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List dataSources;
        private String id;
        private String location;
        private String name;
        private @Nullable String osType;
        private @Nullable String proxySetting;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetGuestDiagnosticsSettingResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dataSources = defaults.dataSources;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.osType = defaults.osType;
    	      this.proxySetting = defaults.proxySetting;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder dataSources(@Nullable List dataSources) {

            this.dataSources = dataSources;
            return this;
        }
        public Builder dataSources(DataSourceResponse... dataSources) {
            return dataSources(List.of(dataSources));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetGuestDiagnosticsSettingResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetGuestDiagnosticsSettingResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetGuestDiagnosticsSettingResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder osType(@Nullable String osType) {

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

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

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetGuestDiagnosticsSettingResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetGuestDiagnosticsSettingResult build() {
            final var _resultValue = new GetGuestDiagnosticsSettingResult();
            _resultValue.dataSources = dataSources;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.osType = osType;
            _resultValue.proxySetting = proxySetting;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy