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

com.pulumi.azurenative.devopsinfrastructure.outputs.GetPoolResult 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.devopsinfrastructure.outputs;

import com.pulumi.azurenative.devopsinfrastructure.outputs.AzureDevOpsOrganizationProfileResponse;
import com.pulumi.azurenative.devopsinfrastructure.outputs.ManagedServiceIdentityResponse;
import com.pulumi.azurenative.devopsinfrastructure.outputs.StatefulResponse;
import com.pulumi.azurenative.devopsinfrastructure.outputs.StatelessAgentProfileResponse;
import com.pulumi.azurenative.devopsinfrastructure.outputs.SystemDataResponse;
import com.pulumi.azurenative.devopsinfrastructure.outputs.VmssFabricProfileResponse;
import com.pulumi.core.Either;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetPoolResult {
    /**
     * @return Defines how the machine will be handled once it executed a job.
     * 
     */
    private Either agentProfile;
    /**
     * @return The resource id of the DevCenter Project the pool belongs to.
     * 
     */
    private String devCenterProjectResourceId;
    /**
     * @return Defines the type of fabric the agent will run on.
     * 
     */
    private VmssFabricProfileResponse fabricProfile;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The managed service identities assigned to this resource.
     * 
     */
    private @Nullable ManagedServiceIdentityResponse identity;
    /**
     * @return The geo-location where the resource lives
     * 
     */
    private String location;
    /**
     * @return Defines how many resources can there be created at any given time.
     * 
     */
    private Integer maximumConcurrency;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Defines the organization in which the pool will be used.
     * 
     */
    private AzureDevOpsOrganizationProfileResponse organizationProfile;
    /**
     * @return The status of the current operation.
     * 
     */
    private @Nullable String provisioningState;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetPoolResult() {}
    /**
     * @return Defines how the machine will be handled once it executed a job.
     * 
     */
    public Either agentProfile() {
        return this.agentProfile;
    }
    /**
     * @return The resource id of the DevCenter Project the pool belongs to.
     * 
     */
    public String devCenterProjectResourceId() {
        return this.devCenterProjectResourceId;
    }
    /**
     * @return Defines the type of fabric the agent will run on.
     * 
     */
    public VmssFabricProfileResponse fabricProfile() {
        return this.fabricProfile;
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The managed service identities assigned to this resource.
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }
    /**
     * @return The geo-location where the resource lives
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Defines how many resources can there be created at any given time.
     * 
     */
    public Integer maximumConcurrency() {
        return this.maximumConcurrency;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Defines the organization in which the pool will be used.
     * 
     */
    public AzureDevOpsOrganizationProfileResponse organizationProfile() {
        return this.organizationProfile;
    }
    /**
     * @return The status of the current operation.
     * 
     */
    public Optional provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetPoolResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Either agentProfile;
        private String devCenterProjectResourceId;
        private VmssFabricProfileResponse fabricProfile;
        private String id;
        private @Nullable ManagedServiceIdentityResponse identity;
        private String location;
        private Integer maximumConcurrency;
        private String name;
        private AzureDevOpsOrganizationProfileResponse organizationProfile;
        private @Nullable String provisioningState;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetPoolResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.agentProfile = defaults.agentProfile;
    	      this.devCenterProjectResourceId = defaults.devCenterProjectResourceId;
    	      this.fabricProfile = defaults.fabricProfile;
    	      this.id = defaults.id;
    	      this.identity = defaults.identity;
    	      this.location = defaults.location;
    	      this.maximumConcurrency = defaults.maximumConcurrency;
    	      this.name = defaults.name;
    	      this.organizationProfile = defaults.organizationProfile;
    	      this.provisioningState = defaults.provisioningState;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder agentProfile(Either agentProfile) {
            if (agentProfile == null) {
              throw new MissingRequiredPropertyException("GetPoolResult", "agentProfile");
            }
            this.agentProfile = agentProfile;
            return this;
        }
        @CustomType.Setter
        public Builder devCenterProjectResourceId(String devCenterProjectResourceId) {
            if (devCenterProjectResourceId == null) {
              throw new MissingRequiredPropertyException("GetPoolResult", "devCenterProjectResourceId");
            }
            this.devCenterProjectResourceId = devCenterProjectResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder fabricProfile(VmssFabricProfileResponse fabricProfile) {
            if (fabricProfile == null) {
              throw new MissingRequiredPropertyException("GetPoolResult", "fabricProfile");
            }
            this.fabricProfile = fabricProfile;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetPoolResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder identity(@Nullable ManagedServiceIdentityResponse identity) {

            this.identity = identity;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetPoolResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder maximumConcurrency(Integer maximumConcurrency) {
            if (maximumConcurrency == null) {
              throw new MissingRequiredPropertyException("GetPoolResult", "maximumConcurrency");
            }
            this.maximumConcurrency = maximumConcurrency;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetPoolResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder organizationProfile(AzureDevOpsOrganizationProfileResponse organizationProfile) {
            if (organizationProfile == null) {
              throw new MissingRequiredPropertyException("GetPoolResult", "organizationProfile");
            }
            this.organizationProfile = organizationProfile;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(@Nullable String provisioningState) {

            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetPoolResult", "systemData");
            }
            this.systemData = systemData;
            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("GetPoolResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetPoolResult build() {
            final var _resultValue = new GetPoolResult();
            _resultValue.agentProfile = agentProfile;
            _resultValue.devCenterProjectResourceId = devCenterProjectResourceId;
            _resultValue.fabricProfile = fabricProfile;
            _resultValue.id = id;
            _resultValue.identity = identity;
            _resultValue.location = location;
            _resultValue.maximumConcurrency = maximumConcurrency;
            _resultValue.name = name;
            _resultValue.organizationProfile = organizationProfile;
            _resultValue.provisioningState = provisioningState;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy