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

com.pulumi.azurenative.sql.outputs.GetManagedDatabaseResult 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.sql.outputs;

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 GetManagedDatabaseResult {
    /**
     * @return Collation of the metadata catalog.
     * 
     */
    private @Nullable String catalogCollation;
    /**
     * @return Collation of the managed database.
     * 
     */
    private @Nullable String collation;
    /**
     * @return Creation date of the database.
     * 
     */
    private String creationDate;
    /**
     * @return Geo paired region.
     * 
     */
    private String defaultSecondaryLocation;
    /**
     * @return Earliest restore point in time for point in time restore.
     * 
     */
    private String earliestRestorePoint;
    /**
     * @return Instance Failover Group resource identifier that this managed database belongs to.
     * 
     */
    private String failoverGroupId;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Resource location.
     * 
     */
    private String location;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Status of the database.
     * 
     */
    private String status;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetManagedDatabaseResult() {}
    /**
     * @return Collation of the metadata catalog.
     * 
     */
    public Optional catalogCollation() {
        return Optional.ofNullable(this.catalogCollation);
    }
    /**
     * @return Collation of the managed database.
     * 
     */
    public Optional collation() {
        return Optional.ofNullable(this.collation);
    }
    /**
     * @return Creation date of the database.
     * 
     */
    public String creationDate() {
        return this.creationDate;
    }
    /**
     * @return Geo paired region.
     * 
     */
    public String defaultSecondaryLocation() {
        return this.defaultSecondaryLocation;
    }
    /**
     * @return Earliest restore point in time for point in time restore.
     * 
     */
    public String earliestRestorePoint() {
        return this.earliestRestorePoint;
    }
    /**
     * @return Instance Failover Group resource identifier that this managed database belongs to.
     * 
     */
    public String failoverGroupId() {
        return this.failoverGroupId;
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource location.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Status of the database.
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetManagedDatabaseResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String catalogCollation;
        private @Nullable String collation;
        private String creationDate;
        private String defaultSecondaryLocation;
        private String earliestRestorePoint;
        private String failoverGroupId;
        private String id;
        private String location;
        private String name;
        private String status;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetManagedDatabaseResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.catalogCollation = defaults.catalogCollation;
    	      this.collation = defaults.collation;
    	      this.creationDate = defaults.creationDate;
    	      this.defaultSecondaryLocation = defaults.defaultSecondaryLocation;
    	      this.earliestRestorePoint = defaults.earliestRestorePoint;
    	      this.failoverGroupId = defaults.failoverGroupId;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.status = defaults.status;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

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

            this.catalogCollation = catalogCollation;
            return this;
        }
        @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("GetManagedDatabaseResult", "creationDate");
            }
            this.creationDate = creationDate;
            return this;
        }
        @CustomType.Setter
        public Builder defaultSecondaryLocation(String defaultSecondaryLocation) {
            if (defaultSecondaryLocation == null) {
              throw new MissingRequiredPropertyException("GetManagedDatabaseResult", "defaultSecondaryLocation");
            }
            this.defaultSecondaryLocation = defaultSecondaryLocation;
            return this;
        }
        @CustomType.Setter
        public Builder earliestRestorePoint(String earliestRestorePoint) {
            if (earliestRestorePoint == null) {
              throw new MissingRequiredPropertyException("GetManagedDatabaseResult", "earliestRestorePoint");
            }
            this.earliestRestorePoint = earliestRestorePoint;
            return this;
        }
        @CustomType.Setter
        public Builder failoverGroupId(String failoverGroupId) {
            if (failoverGroupId == null) {
              throw new MissingRequiredPropertyException("GetManagedDatabaseResult", "failoverGroupId");
            }
            this.failoverGroupId = failoverGroupId;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetManagedDatabaseResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetManagedDatabaseResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetManagedDatabaseResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetManagedDatabaseResult", "status");
            }
            this.status = status;
            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("GetManagedDatabaseResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetManagedDatabaseResult build() {
            final var _resultValue = new GetManagedDatabaseResult();
            _resultValue.catalogCollation = catalogCollation;
            _resultValue.collation = collation;
            _resultValue.creationDate = creationDate;
            _resultValue.defaultSecondaryLocation = defaultSecondaryLocation;
            _resultValue.earliestRestorePoint = earliestRestorePoint;
            _resultValue.failoverGroupId = failoverGroupId;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.status = status;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy