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

com.pulumi.azurenative.devtestlab.outputs.GetEnvironmentResult 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.devtestlab.outputs;

import com.pulumi.azurenative.devtestlab.outputs.EnvironmentDeploymentPropertiesResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetEnvironmentResult {
    /**
     * @return The display name of the Azure Resource Manager template that produced the environment.
     * 
     */
    private @Nullable String armTemplateDisplayName;
    /**
     * @return The creator of the environment.
     * 
     */
    private String createdByUser;
    /**
     * @return The deployment properties of the environment.
     * 
     */
    private @Nullable EnvironmentDeploymentPropertiesResponse deploymentProperties;
    /**
     * @return The identifier of the resource.
     * 
     */
    private String id;
    /**
     * @return The location of the resource.
     * 
     */
    private @Nullable String location;
    /**
     * @return The name of the resource.
     * 
     */
    private String name;
    /**
     * @return The provisioning status of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The identifier of the resource group containing the environment's resources.
     * 
     */
    private String resourceGroupId;
    /**
     * @return The tags of the resource.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;
    /**
     * @return The unique immutable identifier of a resource (Guid).
     * 
     */
    private String uniqueIdentifier;

    private GetEnvironmentResult() {}
    /**
     * @return The display name of the Azure Resource Manager template that produced the environment.
     * 
     */
    public Optional armTemplateDisplayName() {
        return Optional.ofNullable(this.armTemplateDisplayName);
    }
    /**
     * @return The creator of the environment.
     * 
     */
    public String createdByUser() {
        return this.createdByUser;
    }
    /**
     * @return The deployment properties of the environment.
     * 
     */
    public Optional deploymentProperties() {
        return Optional.ofNullable(this.deploymentProperties);
    }
    /**
     * @return The identifier of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The location of the resource.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The provisioning status of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The identifier of the resource group containing the environment's resources.
     * 
     */
    public String resourceGroupId() {
        return this.resourceGroupId;
    }
    /**
     * @return The tags of the resource.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The unique immutable identifier of a resource (Guid).
     * 
     */
    public String uniqueIdentifier() {
        return this.uniqueIdentifier;
    }

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

    public static Builder builder(GetEnvironmentResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String armTemplateDisplayName;
        private String createdByUser;
        private @Nullable EnvironmentDeploymentPropertiesResponse deploymentProperties;
        private String id;
        private @Nullable String location;
        private String name;
        private String provisioningState;
        private String resourceGroupId;
        private @Nullable Map tags;
        private String type;
        private String uniqueIdentifier;
        public Builder() {}
        public Builder(GetEnvironmentResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.armTemplateDisplayName = defaults.armTemplateDisplayName;
    	      this.createdByUser = defaults.createdByUser;
    	      this.deploymentProperties = defaults.deploymentProperties;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.resourceGroupId = defaults.resourceGroupId;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
    	      this.uniqueIdentifier = defaults.uniqueIdentifier;
        }

        @CustomType.Setter
        public Builder armTemplateDisplayName(@Nullable String armTemplateDisplayName) {

            this.armTemplateDisplayName = armTemplateDisplayName;
            return this;
        }
        @CustomType.Setter
        public Builder createdByUser(String createdByUser) {
            if (createdByUser == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "createdByUser");
            }
            this.createdByUser = createdByUser;
            return this;
        }
        @CustomType.Setter
        public Builder deploymentProperties(@Nullable EnvironmentDeploymentPropertiesResponse deploymentProperties) {

            this.deploymentProperties = deploymentProperties;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder resourceGroupId(String resourceGroupId) {
            if (resourceGroupId == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "resourceGroupId");
            }
            this.resourceGroupId = resourceGroupId;
            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("GetEnvironmentResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder uniqueIdentifier(String uniqueIdentifier) {
            if (uniqueIdentifier == null) {
              throw new MissingRequiredPropertyException("GetEnvironmentResult", "uniqueIdentifier");
            }
            this.uniqueIdentifier = uniqueIdentifier;
            return this;
        }
        public GetEnvironmentResult build() {
            final var _resultValue = new GetEnvironmentResult();
            _resultValue.armTemplateDisplayName = armTemplateDisplayName;
            _resultValue.createdByUser = createdByUser;
            _resultValue.deploymentProperties = deploymentProperties;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.resourceGroupId = resourceGroupId;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.uniqueIdentifier = uniqueIdentifier;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy