
com.pulumi.azurenative.dbformysql.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.dbformysql.outputs;
import com.pulumi.azurenative.dbformysql.outputs.BackupResponse;
import com.pulumi.azurenative.dbformysql.outputs.DataEncryptionResponse;
import com.pulumi.azurenative.dbformysql.outputs.HighAvailabilityResponse;
import com.pulumi.azurenative.dbformysql.outputs.IdentityResponse;
import com.pulumi.azurenative.dbformysql.outputs.MaintenanceWindowResponse;
import com.pulumi.azurenative.dbformysql.outputs.NetworkResponse;
import com.pulumi.azurenative.dbformysql.outputs.SkuResponse;
import com.pulumi.azurenative.dbformysql.outputs.StorageResponse;
import com.pulumi.azurenative.dbformysql.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetServerResult {
/**
* @return The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
*
*/
private @Nullable String administratorLogin;
/**
* @return availability Zone information of the server.
*
*/
private @Nullable String availabilityZone;
/**
* @return Backup related properties of a server.
*
*/
private @Nullable BackupResponse backup;
/**
* @return The Data Encryption for CMK.
*
*/
private @Nullable DataEncryptionResponse dataEncryption;
/**
* @return The fully qualified domain name of a server.
*
*/
private String fullyQualifiedDomainName;
/**
* @return High availability related properties of a server.
*
*/
private @Nullable HighAvailabilityResponse highAvailability;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return The cmk identity for the server.
*
*/
private @Nullable IdentityResponse identity;
/**
* @return The geo-location where the resource lives
*
*/
private String location;
/**
* @return Maintenance window of a server.
*
*/
private @Nullable MaintenanceWindowResponse maintenanceWindow;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return Network related properties of a server.
*
*/
private @Nullable NetworkResponse network;
/**
* @return The maximum number of replicas that a primary server can have.
*
*/
private Integer replicaCapacity;
/**
* @return The replication role.
*
*/
private @Nullable String replicationRole;
/**
* @return The SKU (pricing tier) of the server.
*
*/
private @Nullable SkuResponse sku;
/**
* @return The source MySQL server id.
*
*/
private @Nullable String sourceServerResourceId;
/**
* @return The state of a server.
*
*/
private String state;
/**
* @return Storage related properties of a server.
*
*/
private @Nullable StorageResponse storage;
/**
* @return The system metadata relating to this resource.
*
*/
private SystemDataResponse systemData;
/**
* @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;
/**
* @return Server version.
*
*/
private @Nullable String version;
private GetServerResult() {}
/**
* @return The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
*
*/
public Optional administratorLogin() {
return Optional.ofNullable(this.administratorLogin);
}
/**
* @return availability Zone information of the server.
*
*/
public Optional availabilityZone() {
return Optional.ofNullable(this.availabilityZone);
}
/**
* @return Backup related properties of a server.
*
*/
public Optional backup() {
return Optional.ofNullable(this.backup);
}
/**
* @return The Data Encryption for CMK.
*
*/
public Optional dataEncryption() {
return Optional.ofNullable(this.dataEncryption);
}
/**
* @return The fully qualified domain name of a server.
*
*/
public String fullyQualifiedDomainName() {
return this.fullyQualifiedDomainName;
}
/**
* @return High availability related properties of a server.
*
*/
public Optional highAvailability() {
return Optional.ofNullable(this.highAvailability);
}
/**
* @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 cmk identity for the server.
*
*/
public Optional identity() {
return Optional.ofNullable(this.identity);
}
/**
* @return The geo-location where the resource lives
*
*/
public String location() {
return this.location;
}
/**
* @return Maintenance window of a server.
*
*/
public Optional maintenanceWindow() {
return Optional.ofNullable(this.maintenanceWindow);
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return Network related properties of a server.
*
*/
public Optional network() {
return Optional.ofNullable(this.network);
}
/**
* @return The maximum number of replicas that a primary server can have.
*
*/
public Integer replicaCapacity() {
return this.replicaCapacity;
}
/**
* @return The replication role.
*
*/
public Optional replicationRole() {
return Optional.ofNullable(this.replicationRole);
}
/**
* @return The SKU (pricing tier) of the server.
*
*/
public Optional sku() {
return Optional.ofNullable(this.sku);
}
/**
* @return The source MySQL server id.
*
*/
public Optional sourceServerResourceId() {
return Optional.ofNullable(this.sourceServerResourceId);
}
/**
* @return The state of a server.
*
*/
public String state() {
return this.state;
}
/**
* @return Storage related properties of a server.
*
*/
public Optional storage() {
return Optional.ofNullable(this.storage);
}
/**
* @return The system metadata relating to this resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @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;
}
/**
* @return Server version.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
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 String availabilityZone;
private @Nullable BackupResponse backup;
private @Nullable DataEncryptionResponse dataEncryption;
private String fullyQualifiedDomainName;
private @Nullable HighAvailabilityResponse highAvailability;
private String id;
private @Nullable IdentityResponse identity;
private String location;
private @Nullable MaintenanceWindowResponse maintenanceWindow;
private String name;
private @Nullable NetworkResponse network;
private Integer replicaCapacity;
private @Nullable String replicationRole;
private @Nullable SkuResponse sku;
private @Nullable String sourceServerResourceId;
private String state;
private @Nullable StorageResponse storage;
private SystemDataResponse systemData;
private @Nullable Map tags;
private String type;
private @Nullable String version;
public Builder() {}
public Builder(GetServerResult defaults) {
Objects.requireNonNull(defaults);
this.administratorLogin = defaults.administratorLogin;
this.availabilityZone = defaults.availabilityZone;
this.backup = defaults.backup;
this.dataEncryption = defaults.dataEncryption;
this.fullyQualifiedDomainName = defaults.fullyQualifiedDomainName;
this.highAvailability = defaults.highAvailability;
this.id = defaults.id;
this.identity = defaults.identity;
this.location = defaults.location;
this.maintenanceWindow = defaults.maintenanceWindow;
this.name = defaults.name;
this.network = defaults.network;
this.replicaCapacity = defaults.replicaCapacity;
this.replicationRole = defaults.replicationRole;
this.sku = defaults.sku;
this.sourceServerResourceId = defaults.sourceServerResourceId;
this.state = defaults.state;
this.storage = defaults.storage;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.type = defaults.type;
this.version = defaults.version;
}
@CustomType.Setter
public Builder administratorLogin(@Nullable String administratorLogin) {
this.administratorLogin = administratorLogin;
return this;
}
@CustomType.Setter
public Builder availabilityZone(@Nullable String availabilityZone) {
this.availabilityZone = availabilityZone;
return this;
}
@CustomType.Setter
public Builder backup(@Nullable BackupResponse backup) {
this.backup = backup;
return this;
}
@CustomType.Setter
public Builder dataEncryption(@Nullable DataEncryptionResponse dataEncryption) {
this.dataEncryption = dataEncryption;
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 highAvailability(@Nullable HighAvailabilityResponse highAvailability) {
this.highAvailability = highAvailability;
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 IdentityResponse identity) {
this.identity = identity;
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 maintenanceWindow(@Nullable MaintenanceWindowResponse maintenanceWindow) {
this.maintenanceWindow = maintenanceWindow;
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 network(@Nullable NetworkResponse network) {
this.network = network;
return this;
}
@CustomType.Setter
public Builder replicaCapacity(Integer replicaCapacity) {
if (replicaCapacity == null) {
throw new MissingRequiredPropertyException("GetServerResult", "replicaCapacity");
}
this.replicaCapacity = replicaCapacity;
return this;
}
@CustomType.Setter
public Builder replicationRole(@Nullable String replicationRole) {
this.replicationRole = replicationRole;
return this;
}
@CustomType.Setter
public Builder sku(@Nullable SkuResponse sku) {
this.sku = sku;
return this;
}
@CustomType.Setter
public Builder sourceServerResourceId(@Nullable String sourceServerResourceId) {
this.sourceServerResourceId = sourceServerResourceId;
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 storage(@Nullable StorageResponse storage) {
this.storage = storage;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetServerResult", "systemData");
}
this.systemData = systemData;
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;
}
public GetServerResult build() {
final var _resultValue = new GetServerResult();
_resultValue.administratorLogin = administratorLogin;
_resultValue.availabilityZone = availabilityZone;
_resultValue.backup = backup;
_resultValue.dataEncryption = dataEncryption;
_resultValue.fullyQualifiedDomainName = fullyQualifiedDomainName;
_resultValue.highAvailability = highAvailability;
_resultValue.id = id;
_resultValue.identity = identity;
_resultValue.location = location;
_resultValue.maintenanceWindow = maintenanceWindow;
_resultValue.name = name;
_resultValue.network = network;
_resultValue.replicaCapacity = replicaCapacity;
_resultValue.replicationRole = replicationRole;
_resultValue.sku = sku;
_resultValue.sourceServerResourceId = sourceServerResourceId;
_resultValue.state = state;
_resultValue.storage = storage;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy