
com.pulumi.azurenative.workloads.outputs.MsSqlServerProviderInstancePropertiesResponse 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.workloads.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MsSqlServerProviderInstancePropertiesResponse {
/**
* @return Gets or sets the database password.
*
*/
private @Nullable String dbPassword;
/**
* @return Gets or sets the key vault URI to secret with the database password.
*
*/
private @Nullable String dbPasswordUri;
/**
* @return Gets or sets the database sql port.
*
*/
private @Nullable String dbPort;
/**
* @return Gets or sets the database user name.
*
*/
private @Nullable String dbUsername;
/**
* @return Gets or sets the SQL server host name.
*
*/
private @Nullable String hostname;
/**
* @return The provider type. For example, the value can be SapHana.
* Expected value is 'MsSqlServer'.
*
*/
private String providerType;
/**
* @return Gets or sets the SAP System Identifier
*
*/
private @Nullable String sapSid;
/**
* @return Gets or sets the blob URI to SSL certificate for the SQL Database.
*
*/
private @Nullable String sslCertificateUri;
/**
* @return Gets or sets certificate preference if secure communication is enabled.
*
*/
private @Nullable String sslPreference;
private MsSqlServerProviderInstancePropertiesResponse() {}
/**
* @return Gets or sets the database password.
*
*/
public Optional dbPassword() {
return Optional.ofNullable(this.dbPassword);
}
/**
* @return Gets or sets the key vault URI to secret with the database password.
*
*/
public Optional dbPasswordUri() {
return Optional.ofNullable(this.dbPasswordUri);
}
/**
* @return Gets or sets the database sql port.
*
*/
public Optional dbPort() {
return Optional.ofNullable(this.dbPort);
}
/**
* @return Gets or sets the database user name.
*
*/
public Optional dbUsername() {
return Optional.ofNullable(this.dbUsername);
}
/**
* @return Gets or sets the SQL server host name.
*
*/
public Optional hostname() {
return Optional.ofNullable(this.hostname);
}
/**
* @return The provider type. For example, the value can be SapHana.
* Expected value is 'MsSqlServer'.
*
*/
public String providerType() {
return this.providerType;
}
/**
* @return Gets or sets the SAP System Identifier
*
*/
public Optional sapSid() {
return Optional.ofNullable(this.sapSid);
}
/**
* @return Gets or sets the blob URI to SSL certificate for the SQL Database.
*
*/
public Optional sslCertificateUri() {
return Optional.ofNullable(this.sslCertificateUri);
}
/**
* @return Gets or sets certificate preference if secure communication is enabled.
*
*/
public Optional sslPreference() {
return Optional.ofNullable(this.sslPreference);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MsSqlServerProviderInstancePropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String dbPassword;
private @Nullable String dbPasswordUri;
private @Nullable String dbPort;
private @Nullable String dbUsername;
private @Nullable String hostname;
private String providerType;
private @Nullable String sapSid;
private @Nullable String sslCertificateUri;
private @Nullable String sslPreference;
public Builder() {}
public Builder(MsSqlServerProviderInstancePropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.dbPassword = defaults.dbPassword;
this.dbPasswordUri = defaults.dbPasswordUri;
this.dbPort = defaults.dbPort;
this.dbUsername = defaults.dbUsername;
this.hostname = defaults.hostname;
this.providerType = defaults.providerType;
this.sapSid = defaults.sapSid;
this.sslCertificateUri = defaults.sslCertificateUri;
this.sslPreference = defaults.sslPreference;
}
@CustomType.Setter
public Builder dbPassword(@Nullable String dbPassword) {
this.dbPassword = dbPassword;
return this;
}
@CustomType.Setter
public Builder dbPasswordUri(@Nullable String dbPasswordUri) {
this.dbPasswordUri = dbPasswordUri;
return this;
}
@CustomType.Setter
public Builder dbPort(@Nullable String dbPort) {
this.dbPort = dbPort;
return this;
}
@CustomType.Setter
public Builder dbUsername(@Nullable String dbUsername) {
this.dbUsername = dbUsername;
return this;
}
@CustomType.Setter
public Builder hostname(@Nullable String hostname) {
this.hostname = hostname;
return this;
}
@CustomType.Setter
public Builder providerType(String providerType) {
if (providerType == null) {
throw new MissingRequiredPropertyException("MsSqlServerProviderInstancePropertiesResponse", "providerType");
}
this.providerType = providerType;
return this;
}
@CustomType.Setter
public Builder sapSid(@Nullable String sapSid) {
this.sapSid = sapSid;
return this;
}
@CustomType.Setter
public Builder sslCertificateUri(@Nullable String sslCertificateUri) {
this.sslCertificateUri = sslCertificateUri;
return this;
}
@CustomType.Setter
public Builder sslPreference(@Nullable String sslPreference) {
this.sslPreference = sslPreference;
return this;
}
public MsSqlServerProviderInstancePropertiesResponse build() {
final var _resultValue = new MsSqlServerProviderInstancePropertiesResponse();
_resultValue.dbPassword = dbPassword;
_resultValue.dbPasswordUri = dbPasswordUri;
_resultValue.dbPort = dbPort;
_resultValue.dbUsername = dbUsername;
_resultValue.hostname = hostname;
_resultValue.providerType = providerType;
_resultValue.sapSid = sapSid;
_resultValue.sslCertificateUri = sslCertificateUri;
_resultValue.sslPreference = sslPreference;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy