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

com.pulumi.azurenative.extendedlocation.outputs.GetCustomLocationResult 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.extendedlocation.outputs;

import com.pulumi.azurenative.extendedlocation.outputs.CustomLocationPropertiesResponseAuthentication;
import com.pulumi.azurenative.extendedlocation.outputs.IdentityResponse;
import com.pulumi.azurenative.extendedlocation.outputs.SystemDataResponse;
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 GetCustomLocationResult {
    /**
     * @return This is optional input that contains the authentication that should be used to generate the namespace.
     * 
     */
    private @Nullable CustomLocationPropertiesResponseAuthentication authentication;
    /**
     * @return Contains the reference to the add-on that contains charts to deploy CRDs and operators.
     * 
     */
    private @Nullable List clusterExtensionIds;
    /**
     * @return Display name for the Custom Locations location.
     * 
     */
    private @Nullable String displayName;
    /**
     * @return Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
     * 
     */
    private @Nullable String hostResourceId;
    /**
     * @return Type of host the Custom Locations is referencing (Kubernetes, etc...).
     * 
     */
    private @Nullable String hostType;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return Identity for the resource.
     * 
     */
    private @Nullable IdentityResponse identity;
    /**
     * @return The geo-location where the resource lives
     * 
     */
    private String location;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Kubernetes namespace that will be created on the specified cluster.
     * 
     */
    private @Nullable String namespace;
    /**
     * @return Provisioning State for the Custom Location.
     * 
     */
    private @Nullable String provisioningState;
    /**
     * @return Metadata pertaining to creation and last modification of the resource
     * 
     */
    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 GetCustomLocationResult() {}
    /**
     * @return This is optional input that contains the authentication that should be used to generate the namespace.
     * 
     */
    public Optional authentication() {
        return Optional.ofNullable(this.authentication);
    }
    /**
     * @return Contains the reference to the add-on that contains charts to deploy CRDs and operators.
     * 
     */
    public List clusterExtensionIds() {
        return this.clusterExtensionIds == null ? List.of() : this.clusterExtensionIds;
    }
    /**
     * @return Display name for the Custom Locations location.
     * 
     */
    public Optional displayName() {
        return Optional.ofNullable(this.displayName);
    }
    /**
     * @return Connected Cluster or AKS Cluster. The Custom Locations RP will perform a checkAccess API for listAdminCredentials permissions.
     * 
     */
    public Optional hostResourceId() {
        return Optional.ofNullable(this.hostResourceId);
    }
    /**
     * @return Type of host the Custom Locations is referencing (Kubernetes, etc...).
     * 
     */
    public Optional hostType() {
        return Optional.ofNullable(this.hostType);
    }
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Identity for the resource.
     * 
     */
    public Optional identity() {
        return Optional.ofNullable(this.identity);
    }
    /**
     * @return The geo-location where the resource lives
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Kubernetes namespace that will be created on the specified cluster.
     * 
     */
    public Optional namespace() {
        return Optional.ofNullable(this.namespace);
    }
    /**
     * @return Provisioning State for the Custom Location.
     * 
     */
    public Optional provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }
    /**
     * @return Metadata pertaining to creation and last modification of the resource
     * 
     */
    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(GetCustomLocationResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable CustomLocationPropertiesResponseAuthentication authentication;
        private @Nullable List clusterExtensionIds;
        private @Nullable String displayName;
        private @Nullable String hostResourceId;
        private @Nullable String hostType;
        private String id;
        private @Nullable IdentityResponse identity;
        private String location;
        private String name;
        private @Nullable String namespace;
        private @Nullable String provisioningState;
        private SystemDataResponse systemData;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetCustomLocationResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authentication = defaults.authentication;
    	      this.clusterExtensionIds = defaults.clusterExtensionIds;
    	      this.displayName = defaults.displayName;
    	      this.hostResourceId = defaults.hostResourceId;
    	      this.hostType = defaults.hostType;
    	      this.id = defaults.id;
    	      this.identity = defaults.identity;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.namespace = defaults.namespace;
    	      this.provisioningState = defaults.provisioningState;
    	      this.systemData = defaults.systemData;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder authentication(@Nullable CustomLocationPropertiesResponseAuthentication authentication) {

            this.authentication = authentication;
            return this;
        }
        @CustomType.Setter
        public Builder clusterExtensionIds(@Nullable List clusterExtensionIds) {

            this.clusterExtensionIds = clusterExtensionIds;
            return this;
        }
        public Builder clusterExtensionIds(String... clusterExtensionIds) {
            return clusterExtensionIds(List.of(clusterExtensionIds));
        }
        @CustomType.Setter
        public Builder displayName(@Nullable String displayName) {

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

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

            this.hostType = hostType;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetCustomLocationResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder identity(@Nullable IdentityResponse identity) {

            this.identity = identity;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetCustomLocationResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetCustomLocationResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder namespace(@Nullable String namespace) {

            this.namespace = namespace;
            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("GetCustomLocationResult", "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("GetCustomLocationResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetCustomLocationResult build() {
            final var _resultValue = new GetCustomLocationResult();
            _resultValue.authentication = authentication;
            _resultValue.clusterExtensionIds = clusterExtensionIds;
            _resultValue.displayName = displayName;
            _resultValue.hostResourceId = hostResourceId;
            _resultValue.hostType = hostType;
            _resultValue.id = id;
            _resultValue.identity = identity;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.namespace = namespace;
            _resultValue.provisioningState = provisioningState;
            _resultValue.systemData = systemData;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy