com.pulumi.azurenative.azurearcdata.outputs.SqlManagedInstanceK8sSpecResponse 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.azurearcdata.outputs;
import com.pulumi.azurenative.azurearcdata.outputs.K8sSchedulingResponse;
import com.pulumi.azurenative.azurearcdata.outputs.K8sSecurityResponse;
import com.pulumi.azurenative.azurearcdata.outputs.K8sSettingsResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SqlManagedInstanceK8sSpecResponse {
/**
* @return This option specifies the number of SQL Managed Instance replicas that will be deployed in your Kubernetes cluster for high availability purposes. If sku.tier is BusinessCritical, allowed values are '2' or '3' with default of '3'. If sku.tier is GeneralPurpose, replicas must be '1'.
*
*/
private @Nullable Integer replicas;
/**
* @return The kubernetes scheduling information.
*
*/
private @Nullable K8sSchedulingResponse scheduling;
/**
* @return The kubernetes security information.
*
*/
private @Nullable K8sSecurityResponse security;
/**
* @return The kubernetes settings information.
*
*/
private @Nullable K8sSettingsResponse settings;
private SqlManagedInstanceK8sSpecResponse() {}
/**
* @return This option specifies the number of SQL Managed Instance replicas that will be deployed in your Kubernetes cluster for high availability purposes. If sku.tier is BusinessCritical, allowed values are '2' or '3' with default of '3'. If sku.tier is GeneralPurpose, replicas must be '1'.
*
*/
public Optional replicas() {
return Optional.ofNullable(this.replicas);
}
/**
* @return The kubernetes scheduling information.
*
*/
public Optional scheduling() {
return Optional.ofNullable(this.scheduling);
}
/**
* @return The kubernetes security information.
*
*/
public Optional security() {
return Optional.ofNullable(this.security);
}
/**
* @return The kubernetes settings information.
*
*/
public Optional settings() {
return Optional.ofNullable(this.settings);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SqlManagedInstanceK8sSpecResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer replicas;
private @Nullable K8sSchedulingResponse scheduling;
private @Nullable K8sSecurityResponse security;
private @Nullable K8sSettingsResponse settings;
public Builder() {}
public Builder(SqlManagedInstanceK8sSpecResponse defaults) {
Objects.requireNonNull(defaults);
this.replicas = defaults.replicas;
this.scheduling = defaults.scheduling;
this.security = defaults.security;
this.settings = defaults.settings;
}
@CustomType.Setter
public Builder replicas(@Nullable Integer replicas) {
this.replicas = replicas;
return this;
}
@CustomType.Setter
public Builder scheduling(@Nullable K8sSchedulingResponse scheduling) {
this.scheduling = scheduling;
return this;
}
@CustomType.Setter
public Builder security(@Nullable K8sSecurityResponse security) {
this.security = security;
return this;
}
@CustomType.Setter
public Builder settings(@Nullable K8sSettingsResponse settings) {
this.settings = settings;
return this;
}
public SqlManagedInstanceK8sSpecResponse build() {
final var _resultValue = new SqlManagedInstanceK8sSpecResponse();
_resultValue.replicas = replicas;
_resultValue.scheduling = scheduling;
_resultValue.security = security;
_resultValue.settings = settings;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy