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

com.pulumi.azurenative.synapse.outputs.GetSqlPoolResult 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.synapse.outputs;

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

@CustomType
public final class GetSqlPoolResult {
    /**
     * @return Collation mode
     * 
     */
    private @Nullable String collation;
    /**
     * @return Date the SQL pool was created
     * 
     */
    private String creationDate;
    /**
     * @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
     * 
     */
    private String id;
    /**
     * @return The geo-location where the resource lives
     * 
     */
    private String location;
    /**
     * @return Maximum size in bytes
     * 
     */
    private @Nullable Double maxSizeBytes;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return Resource state
     * 
     */
    private @Nullable String provisioningState;
    /**
     * @return Backup database to restore from
     * 
     */
    private @Nullable String recoverableDatabaseId;
    /**
     * @return Snapshot time to restore
     * 
     */
    private @Nullable String restorePointInTime;
    /**
     * @return SQL pool SKU
     * 
     */
    private @Nullable SkuResponse sku;
    /**
     * @return Specifies the time that the sql pool was deleted
     * 
     */
    private @Nullable String sourceDatabaseDeletionDate;
    /**
     * @return Resource status
     * 
     */
    private String status;
    /**
     * @return The storage account type used to store backups for this sql pool.
     * 
     */
    private @Nullable String storageAccountType;
    /**
     * @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 GetSqlPoolResult() {}
    /**
     * @return Collation mode
     * 
     */
    public Optional collation() {
        return Optional.ofNullable(this.collation);
    }
    /**
     * @return Date the SQL pool was created
     * 
     */
    public String creationDate() {
        return this.creationDate;
    }
    /**
     * @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 geo-location where the resource lives
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Maximum size in bytes
     * 
     */
    public Optional maxSizeBytes() {
        return Optional.ofNullable(this.maxSizeBytes);
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Resource state
     * 
     */
    public Optional provisioningState() {
        return Optional.ofNullable(this.provisioningState);
    }
    /**
     * @return Backup database to restore from
     * 
     */
    public Optional recoverableDatabaseId() {
        return Optional.ofNullable(this.recoverableDatabaseId);
    }
    /**
     * @return Snapshot time to restore
     * 
     */
    public Optional restorePointInTime() {
        return Optional.ofNullable(this.restorePointInTime);
    }
    /**
     * @return SQL pool SKU
     * 
     */
    public Optional sku() {
        return Optional.ofNullable(this.sku);
    }
    /**
     * @return Specifies the time that the sql pool was deleted
     * 
     */
    public Optional sourceDatabaseDeletionDate() {
        return Optional.ofNullable(this.sourceDatabaseDeletionDate);
    }
    /**
     * @return Resource status
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return The storage account type used to store backups for this sql pool.
     * 
     */
    public Optional storageAccountType() {
        return Optional.ofNullable(this.storageAccountType);
    }
    /**
     * @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(GetSqlPoolResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String collation;
        private String creationDate;
        private String id;
        private String location;
        private @Nullable Double maxSizeBytes;
        private String name;
        private @Nullable String provisioningState;
        private @Nullable String recoverableDatabaseId;
        private @Nullable String restorePointInTime;
        private @Nullable SkuResponse sku;
        private @Nullable String sourceDatabaseDeletionDate;
        private String status;
        private @Nullable String storageAccountType;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetSqlPoolResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.collation = defaults.collation;
    	      this.creationDate = defaults.creationDate;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.maxSizeBytes = defaults.maxSizeBytes;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.recoverableDatabaseId = defaults.recoverableDatabaseId;
    	      this.restorePointInTime = defaults.restorePointInTime;
    	      this.sku = defaults.sku;
    	      this.sourceDatabaseDeletionDate = defaults.sourceDatabaseDeletionDate;
    	      this.status = defaults.status;
    	      this.storageAccountType = defaults.storageAccountType;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

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

            this.collation = collation;
            return this;
        }
        @CustomType.Setter
        public Builder creationDate(String creationDate) {
            if (creationDate == null) {
              throw new MissingRequiredPropertyException("GetSqlPoolResult", "creationDate");
            }
            this.creationDate = creationDate;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetSqlPoolResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetSqlPoolResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder maxSizeBytes(@Nullable Double maxSizeBytes) {

            this.maxSizeBytes = maxSizeBytes;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetSqlPoolResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(@Nullable String provisioningState) {

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

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

            this.restorePointInTime = restorePointInTime;
            return this;
        }
        @CustomType.Setter
        public Builder sku(@Nullable SkuResponse sku) {

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

            this.sourceDatabaseDeletionDate = sourceDatabaseDeletionDate;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetSqlPoolResult", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder storageAccountType(@Nullable String storageAccountType) {

            this.storageAccountType = storageAccountType;
            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("GetSqlPoolResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetSqlPoolResult build() {
            final var _resultValue = new GetSqlPoolResult();
            _resultValue.collation = collation;
            _resultValue.creationDate = creationDate;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.maxSizeBytes = maxSizeBytes;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.recoverableDatabaseId = recoverableDatabaseId;
            _resultValue.restorePointInTime = restorePointInTime;
            _resultValue.sku = sku;
            _resultValue.sourceDatabaseDeletionDate = sourceDatabaseDeletionDate;
            _resultValue.status = status;
            _resultValue.storageAccountType = storageAccountType;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy