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

com.pulumi.azurenative.web.outputs.GetStaticSiteDatabaseConnectionResult 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.web.outputs;

import com.pulumi.azurenative.web.outputs.StaticSiteDatabaseConnectionConfigurationFileOverviewResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetStaticSiteDatabaseConnectionResult {
    /**
     * @return A list of configuration files associated with this database connection.
     * 
     */
    private List configurationFiles;
    /**
     * @return If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
     * 
     */
    private @Nullable String connectionIdentity;
    /**
     * @return The connection string to use to connect to the database.
     * 
     */
    private @Nullable String connectionString;
    /**
     * @return Resource Id.
     * 
     */
    private String id;
    /**
     * @return Kind of resource.
     * 
     */
    private @Nullable String kind;
    /**
     * @return Resource Name.
     * 
     */
    private String name;
    /**
     * @return The region of the database resource.
     * 
     */
    private String region;
    /**
     * @return The resource id of the database.
     * 
     */
    private String resourceId;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetStaticSiteDatabaseConnectionResult() {}
    /**
     * @return A list of configuration files associated with this database connection.
     * 
     */
    public List configurationFiles() {
        return this.configurationFiles;
    }
    /**
     * @return If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.
     * 
     */
    public Optional connectionIdentity() {
        return Optional.ofNullable(this.connectionIdentity);
    }
    /**
     * @return The connection string to use to connect to the database.
     * 
     */
    public Optional connectionString() {
        return Optional.ofNullable(this.connectionString);
    }
    /**
     * @return Resource Id.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Kind of resource.
     * 
     */
    public Optional kind() {
        return Optional.ofNullable(this.kind);
    }
    /**
     * @return Resource Name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The region of the database resource.
     * 
     */
    public String region() {
        return this.region;
    }
    /**
     * @return The resource id of the database.
     * 
     */
    public String resourceId() {
        return this.resourceId;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetStaticSiteDatabaseConnectionResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List configurationFiles;
        private @Nullable String connectionIdentity;
        private @Nullable String connectionString;
        private String id;
        private @Nullable String kind;
        private String name;
        private String region;
        private String resourceId;
        private String type;
        public Builder() {}
        public Builder(GetStaticSiteDatabaseConnectionResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.configurationFiles = defaults.configurationFiles;
    	      this.connectionIdentity = defaults.connectionIdentity;
    	      this.connectionString = defaults.connectionString;
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.name = defaults.name;
    	      this.region = defaults.region;
    	      this.resourceId = defaults.resourceId;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder configurationFiles(List configurationFiles) {
            if (configurationFiles == null) {
              throw new MissingRequiredPropertyException("GetStaticSiteDatabaseConnectionResult", "configurationFiles");
            }
            this.configurationFiles = configurationFiles;
            return this;
        }
        public Builder configurationFiles(StaticSiteDatabaseConnectionConfigurationFileOverviewResponse... configurationFiles) {
            return configurationFiles(List.of(configurationFiles));
        }
        @CustomType.Setter
        public Builder connectionIdentity(@Nullable String connectionIdentity) {

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

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

            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetStaticSiteDatabaseConnectionResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder region(String region) {
            if (region == null) {
              throw new MissingRequiredPropertyException("GetStaticSiteDatabaseConnectionResult", "region");
            }
            this.region = region;
            return this;
        }
        @CustomType.Setter
        public Builder resourceId(String resourceId) {
            if (resourceId == null) {
              throw new MissingRequiredPropertyException("GetStaticSiteDatabaseConnectionResult", "resourceId");
            }
            this.resourceId = resourceId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetStaticSiteDatabaseConnectionResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetStaticSiteDatabaseConnectionResult build() {
            final var _resultValue = new GetStaticSiteDatabaseConnectionResult();
            _resultValue.configurationFiles = configurationFiles;
            _resultValue.connectionIdentity = connectionIdentity;
            _resultValue.connectionString = connectionString;
            _resultValue.id = id;
            _resultValue.kind = kind;
            _resultValue.name = name;
            _resultValue.region = region;
            _resultValue.resourceId = resourceId;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy