com.pulumi.azurenative.sql.outputs.GetServerResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.azurenative.sql.outputs.ResourceIdentityResponse;
import com.pulumi.azurenative.sql.outputs.ServerExternalAdministratorResponse;
import com.pulumi.azurenative.sql.outputs.ServerPrivateEndpointConnectionResponse;
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 GetServerResult {
/**
* @return Administrator username for the server. Once created it cannot be changed.
*
*/
private @Nullable String administratorLogin;
/**
* @return The Azure Active Directory administrator of the server.
*
*/
private @Nullable ServerExternalAdministratorResponse administrators;
/**
* @return The Client id used for cross tenant CMK scenario
*
*/
private @Nullable String federatedClientId;
/**
* @return The fully qualified domain name of the server.
*
*/
private String fullyQualifiedDomainName;
/**
* @return Resource ID.
*
*/
private String id;
/**
* @return The Azure Active Directory identity of the server.
*
*/
private @Nullable ResourceIdentityResponse identity;
/**
* @return A CMK URI of the key to use for encryption.
*
*/
private @Nullable String keyId;
/**
* @return Kind of sql server. This is metadata used for the Azure portal experience.
*
*/
private String kind;
/**
* @return Resource location.
*
*/
private String location;
/**
* @return Minimal TLS version. Allowed values: '1.0', '1.1', '1.2'
*
*/
private @Nullable String minimalTlsVersion;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return The resource id of a user assigned identity to be used by default.
*
*/
private @Nullable String primaryUserAssignedIdentityId;
/**
* @return List of private endpoint connections on a server
*
*/
private List privateEndpointConnections;
/**
* @return Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
*
*/
private @Nullable String publicNetworkAccess;
/**
* @return Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
*
*/
private @Nullable String restrictOutboundNetworkAccess;
/**
* @return The state of the server.
*
*/
private String state;
/**
* @return Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return Resource type.
*
*/
private String type;
/**
* @return The version of the server.
*
*/
private @Nullable String version;
/**
* @return Whether or not existing server has a workspace created and if it allows connection from workspace
*
*/
private String workspaceFeature;
private GetServerResult() {}
/**
* @return Administrator username for the server. Once created it cannot be changed.
*
*/
public Optional administratorLogin() {
return Optional.ofNullable(this.administratorLogin);
}
/**
* @return The Azure Active Directory administrator of the server.
*
*/
public Optional administrators() {
return Optional.ofNullable(this.administrators);
}
/**
* @return The Client id used for cross tenant CMK scenario
*
*/
public Optional federatedClientId() {
return Optional.ofNullable(this.federatedClientId);
}
/**
* @return The fully qualified domain name of the server.
*
*/
public String fullyQualifiedDomainName() {
return this.fullyQualifiedDomainName;
}
/**
* @return Resource ID.
*
*/
public String id() {
return this.id;
}
/**
* @return The Azure Active Directory identity of the server.
*
*/
public Optional identity() {
return Optional.ofNullable(this.identity);
}
/**
* @return A CMK URI of the key to use for encryption.
*
*/
public Optional keyId() {
return Optional.ofNullable(this.keyId);
}
/**
* @return Kind of sql server. This is metadata used for the Azure portal experience.
*
*/
public String kind() {
return this.kind;
}
/**
* @return Resource location.
*
*/
public String location() {
return this.location;
}
/**
* @return Minimal TLS version. Allowed values: '1.0', '1.1', '1.2'
*
*/
public Optional minimalTlsVersion() {
return Optional.ofNullable(this.minimalTlsVersion);
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return The resource id of a user assigned identity to be used by default.
*
*/
public Optional primaryUserAssignedIdentityId() {
return Optional.ofNullable(this.primaryUserAssignedIdentityId);
}
/**
* @return List of private endpoint connections on a server
*
*/
public List privateEndpointConnections() {
return this.privateEndpointConnections;
}
/**
* @return Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
*
*/
public Optional publicNetworkAccess() {
return Optional.ofNullable(this.publicNetworkAccess);
}
/**
* @return Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled'
*
*/
public Optional restrictOutboundNetworkAccess() {
return Optional.ofNullable(this.restrictOutboundNetworkAccess);
}
/**
* @return The state of the server.
*
*/
public String state() {
return this.state;
}
/**
* @return Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
/**
* @return The version of the server.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
/**
* @return Whether or not existing server has a workspace created and if it allows connection from workspace
*
*/
public String workspaceFeature() {
return this.workspaceFeature;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetServerResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String administratorLogin;
private @Nullable ServerExternalAdministratorResponse administrators;
private @Nullable String federatedClientId;
private String fullyQualifiedDomainName;
private String id;
private @Nullable ResourceIdentityResponse identity;
private @Nullable String keyId;
private String kind;
private String location;
private @Nullable String minimalTlsVersion;
private String name;
private @Nullable String primaryUserAssignedIdentityId;
private List privateEndpointConnections;
private @Nullable String publicNetworkAccess;
private @Nullable String restrictOutboundNetworkAccess;
private String state;
private @Nullable Map tags;
private String type;
private @Nullable String version;
private String workspaceFeature;
public Builder() {}
public Builder(GetServerResult defaults) {
Objects.requireNonNull(defaults);
this.administratorLogin = defaults.administratorLogin;
this.administrators = defaults.administrators;
this.federatedClientId = defaults.federatedClientId;
this.fullyQualifiedDomainName = defaults.fullyQualifiedDomainName;
this.id = defaults.id;
this.identity = defaults.identity;
this.keyId = defaults.keyId;
this.kind = defaults.kind;
this.location = defaults.location;
this.minimalTlsVersion = defaults.minimalTlsVersion;
this.name = defaults.name;
this.primaryUserAssignedIdentityId = defaults.primaryUserAssignedIdentityId;
this.privateEndpointConnections = defaults.privateEndpointConnections;
this.publicNetworkAccess = defaults.publicNetworkAccess;
this.restrictOutboundNetworkAccess = defaults.restrictOutboundNetworkAccess;
this.state = defaults.state;
this.tags = defaults.tags;
this.type = defaults.type;
this.version = defaults.version;
this.workspaceFeature = defaults.workspaceFeature;
}
@CustomType.Setter
public Builder administratorLogin(@Nullable String administratorLogin) {
this.administratorLogin = administratorLogin;
return this;
}
@CustomType.Setter
public Builder administrators(@Nullable ServerExternalAdministratorResponse administrators) {
this.administrators = administrators;
return this;
}
@CustomType.Setter
public Builder federatedClientId(@Nullable String federatedClientId) {
this.federatedClientId = federatedClientId;
return this;
}
@CustomType.Setter
public Builder fullyQualifiedDomainName(String fullyQualifiedDomainName) {
if (fullyQualifiedDomainName == null) {
throw new MissingRequiredPropertyException("GetServerResult", "fullyQualifiedDomainName");
}
this.fullyQualifiedDomainName = fullyQualifiedDomainName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetServerResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder identity(@Nullable ResourceIdentityResponse identity) {
this.identity = identity;
return this;
}
@CustomType.Setter
public Builder keyId(@Nullable String keyId) {
this.keyId = keyId;
return this;
}
@CustomType.Setter
public Builder kind(String kind) {
if (kind == null) {
throw new MissingRequiredPropertyException("GetServerResult", "kind");
}
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder location(String location) {
if (location == null) {
throw new MissingRequiredPropertyException("GetServerResult", "location");
}
this.location = location;
return this;
}
@CustomType.Setter
public Builder minimalTlsVersion(@Nullable String minimalTlsVersion) {
this.minimalTlsVersion = minimalTlsVersion;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetServerResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder primaryUserAssignedIdentityId(@Nullable String primaryUserAssignedIdentityId) {
this.primaryUserAssignedIdentityId = primaryUserAssignedIdentityId;
return this;
}
@CustomType.Setter
public Builder privateEndpointConnections(List privateEndpointConnections) {
if (privateEndpointConnections == null) {
throw new MissingRequiredPropertyException("GetServerResult", "privateEndpointConnections");
}
this.privateEndpointConnections = privateEndpointConnections;
return this;
}
public Builder privateEndpointConnections(ServerPrivateEndpointConnectionResponse... privateEndpointConnections) {
return privateEndpointConnections(List.of(privateEndpointConnections));
}
@CustomType.Setter
public Builder publicNetworkAccess(@Nullable String publicNetworkAccess) {
this.publicNetworkAccess = publicNetworkAccess;
return this;
}
@CustomType.Setter
public Builder restrictOutboundNetworkAccess(@Nullable String restrictOutboundNetworkAccess) {
this.restrictOutboundNetworkAccess = restrictOutboundNetworkAccess;
return this;
}
@CustomType.Setter
public Builder state(String state) {
if (state == null) {
throw new MissingRequiredPropertyException("GetServerResult", "state");
}
this.state = state;
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("GetServerResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
@CustomType.Setter
public Builder workspaceFeature(String workspaceFeature) {
if (workspaceFeature == null) {
throw new MissingRequiredPropertyException("GetServerResult", "workspaceFeature");
}
this.workspaceFeature = workspaceFeature;
return this;
}
public GetServerResult build() {
final var _resultValue = new GetServerResult();
_resultValue.administratorLogin = administratorLogin;
_resultValue.administrators = administrators;
_resultValue.federatedClientId = federatedClientId;
_resultValue.fullyQualifiedDomainName = fullyQualifiedDomainName;
_resultValue.id = id;
_resultValue.identity = identity;
_resultValue.keyId = keyId;
_resultValue.kind = kind;
_resultValue.location = location;
_resultValue.minimalTlsVersion = minimalTlsVersion;
_resultValue.name = name;
_resultValue.primaryUserAssignedIdentityId = primaryUserAssignedIdentityId;
_resultValue.privateEndpointConnections = privateEndpointConnections;
_resultValue.publicNetworkAccess = publicNetworkAccess;
_resultValue.restrictOutboundNetworkAccess = restrictOutboundNetworkAccess;
_resultValue.state = state;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.version = version;
_resultValue.workspaceFeature = workspaceFeature;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy