
com.pulumi.azurenative.migrate.outputs.SqlElasticPoolResourceSettingsResponse 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.migrate.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 SqlElasticPoolResourceSettingsResponse {
/**
* @return The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
* Expected value is 'Microsoft.Sql/servers/elasticPools'.
*
*/
private String resourceType;
/**
* @return Gets or sets the Resource tags.
*
*/
private @Nullable Map tags;
/**
* @return Gets or sets the target resource group name.
*
*/
private @Nullable String targetResourceGroupName;
/**
* @return Gets or sets the target Resource name.
*
*/
private String targetResourceName;
/**
* @return Defines the zone redundant resource setting.
*
*/
private @Nullable String zoneRedundant;
private SqlElasticPoolResourceSettingsResponse() {}
/**
* @return The resource type. For example, the value can be Microsoft.Compute/virtualMachines.
* Expected value is 'Microsoft.Sql/servers/elasticPools'.
*
*/
public String resourceType() {
return this.resourceType;
}
/**
* @return Gets or sets the Resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Gets or sets the target resource group name.
*
*/
public Optional targetResourceGroupName() {
return Optional.ofNullable(this.targetResourceGroupName);
}
/**
* @return Gets or sets the target Resource name.
*
*/
public String targetResourceName() {
return this.targetResourceName;
}
/**
* @return Defines the zone redundant resource setting.
*
*/
public Optional zoneRedundant() {
return Optional.ofNullable(this.zoneRedundant);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SqlElasticPoolResourceSettingsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String resourceType;
private @Nullable Map tags;
private @Nullable String targetResourceGroupName;
private String targetResourceName;
private @Nullable String zoneRedundant;
public Builder() {}
public Builder(SqlElasticPoolResourceSettingsResponse defaults) {
Objects.requireNonNull(defaults);
this.resourceType = defaults.resourceType;
this.tags = defaults.tags;
this.targetResourceGroupName = defaults.targetResourceGroupName;
this.targetResourceName = defaults.targetResourceName;
this.zoneRedundant = defaults.zoneRedundant;
}
@CustomType.Setter
public Builder resourceType(String resourceType) {
if (resourceType == null) {
throw new MissingRequiredPropertyException("SqlElasticPoolResourceSettingsResponse", "resourceType");
}
this.resourceType = resourceType;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder targetResourceGroupName(@Nullable String targetResourceGroupName) {
this.targetResourceGroupName = targetResourceGroupName;
return this;
}
@CustomType.Setter
public Builder targetResourceName(String targetResourceName) {
if (targetResourceName == null) {
throw new MissingRequiredPropertyException("SqlElasticPoolResourceSettingsResponse", "targetResourceName");
}
this.targetResourceName = targetResourceName;
return this;
}
@CustomType.Setter
public Builder zoneRedundant(@Nullable String zoneRedundant) {
this.zoneRedundant = zoneRedundant;
return this;
}
public SqlElasticPoolResourceSettingsResponse build() {
final var _resultValue = new SqlElasticPoolResourceSettingsResponse();
_resultValue.resourceType = resourceType;
_resultValue.tags = tags;
_resultValue.targetResourceGroupName = targetResourceGroupName;
_resultValue.targetResourceName = targetResourceName;
_resultValue.zoneRedundant = zoneRedundant;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy