tags;
private final String storageMode;
private CreateClusterRequest(BuilderImpl builder) {
super(builder);
this.brokerNodeGroupInfo = builder.brokerNodeGroupInfo;
this.clientAuthentication = builder.clientAuthentication;
this.clusterName = builder.clusterName;
this.configurationInfo = builder.configurationInfo;
this.encryptionInfo = builder.encryptionInfo;
this.enhancedMonitoring = builder.enhancedMonitoring;
this.openMonitoring = builder.openMonitoring;
this.kafkaVersion = builder.kafkaVersion;
this.loggingInfo = builder.loggingInfo;
this.numberOfBrokerNodes = builder.numberOfBrokerNodes;
this.tags = builder.tags;
this.storageMode = builder.storageMode;
}
/**
*
*
* Information about the broker nodes in the cluster.
*
*
* @return
* Information about the broker nodes in the cluster.
*
*/
public final BrokerNodeGroupInfo brokerNodeGroupInfo() {
return brokerNodeGroupInfo;
}
/**
*
*
* Includes all client authentication related information.
*
*
* @return
* Includes all client authentication related information.
*
*/
public final ClientAuthentication clientAuthentication() {
return clientAuthentication;
}
/**
*
*
* The name of the cluster.
*
*
* @return
* The name of the cluster.
*
*/
public final String clusterName() {
return clusterName;
}
/**
*
*
* Represents the configuration that you want MSK to use for the brokers in a cluster.
*
*
* @return
* Represents the configuration that you want MSK to use for the brokers in a cluster.
*
*/
public final ConfigurationInfo configurationInfo() {
return configurationInfo;
}
/**
*
*
* Includes all encryption-related information.
*
*
* @return
* Includes all encryption-related information.
*
*/
public final EncryptionInfo encryptionInfo() {
return encryptionInfo;
}
/**
*
*
* Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER,
* PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
*
*
*
* If the service returns an enum value that is not available in the current SDK version,
* {@link #enhancedMonitoring} will return {@link EnhancedMonitoring#UNKNOWN_TO_SDK_VERSION}. The raw value returned
* by the service is available from {@link #enhancedMonitoringAsString}.
*
*
* @return
* Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER,
* PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
*
* @see EnhancedMonitoring
*/
public final EnhancedMonitoring enhancedMonitoring() {
return EnhancedMonitoring.fromValue(enhancedMonitoring);
}
/**
*
*
* Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER,
* PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
*
*
*
* If the service returns an enum value that is not available in the current SDK version,
* {@link #enhancedMonitoring} will return {@link EnhancedMonitoring#UNKNOWN_TO_SDK_VERSION}. The raw value returned
* by the service is available from {@link #enhancedMonitoringAsString}.
*
*
* @return
* Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER,
* PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
*
* @see EnhancedMonitoring
*/
public final String enhancedMonitoringAsString() {
return enhancedMonitoring;
}
/**
*
*
* The settings for open monitoring.
*
*
* @return
* The settings for open monitoring.
*
*/
public final OpenMonitoringInfo openMonitoring() {
return openMonitoring;
}
/**
*
*
* The version of Apache Kafka.
*
*
* @return
* The version of Apache Kafka.
*
*/
public final String kafkaVersion() {
return kafkaVersion;
}
/**
* Returns the value of the LoggingInfo property for this object.
*
* @return The value of the LoggingInfo property for this object.
*/
public final LoggingInfo loggingInfo() {
return loggingInfo;
}
/**
*
*
* The number of broker nodes in the cluster.
*
*
* @return
* The number of broker nodes in the cluster.
*
*/
public final Integer numberOfBrokerNodes() {
return numberOfBrokerNodes;
}
/**
* For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that
* the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
* because the SDK will never return a null collection or map, but you may need to differentiate between the service
* returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
* if a value for the property was specified in the request builder, and false if a value was not specified.
*/
public final boolean hasTags() {
return tags != null && !(tags instanceof SdkAutoConstructMap);
}
/**
*
*
* Create tags when creating the cluster.
*
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasTags} method.
*
*
* @return
* Create tags when creating the cluster.
*
*/
public final Map tags() {
return tags;
}
/**
*
*
* This controls storage mode for supported storage tiers.
*
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #storageMode} will
* return {@link StorageMode#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #storageModeAsString}.
*
*
* @return
* This controls storage mode for supported storage tiers.
*
* @see StorageMode
*/
public final StorageMode storageMode() {
return StorageMode.fromValue(storageMode);
}
/**
*
*
* This controls storage mode for supported storage tiers.
*
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #storageMode} will
* return {@link StorageMode#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #storageModeAsString}.
*
*
* @return
* This controls storage mode for supported storage tiers.
*
* @see StorageMode
*/
public final String storageModeAsString() {
return storageMode;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + super.hashCode();
hashCode = 31 * hashCode + Objects.hashCode(brokerNodeGroupInfo());
hashCode = 31 * hashCode + Objects.hashCode(clientAuthentication());
hashCode = 31 * hashCode + Objects.hashCode(clusterName());
hashCode = 31 * hashCode + Objects.hashCode(configurationInfo());
hashCode = 31 * hashCode + Objects.hashCode(encryptionInfo());
hashCode = 31 * hashCode + Objects.hashCode(enhancedMonitoringAsString());
hashCode = 31 * hashCode + Objects.hashCode(openMonitoring());
hashCode = 31 * hashCode + Objects.hashCode(kafkaVersion());
hashCode = 31 * hashCode + Objects.hashCode(loggingInfo());
hashCode = 31 * hashCode + Objects.hashCode(numberOfBrokerNodes());
hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
hashCode = 31 * hashCode + Objects.hashCode(storageModeAsString());
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return super.equals(obj) && equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof CreateClusterRequest)) {
return false;
}
CreateClusterRequest other = (CreateClusterRequest) obj;
return Objects.equals(brokerNodeGroupInfo(), other.brokerNodeGroupInfo())
&& Objects.equals(clientAuthentication(), other.clientAuthentication())
&& Objects.equals(clusterName(), other.clusterName())
&& Objects.equals(configurationInfo(), other.configurationInfo())
&& Objects.equals(encryptionInfo(), other.encryptionInfo())
&& Objects.equals(enhancedMonitoringAsString(), other.enhancedMonitoringAsString())
&& Objects.equals(openMonitoring(), other.openMonitoring())
&& Objects.equals(kafkaVersion(), other.kafkaVersion()) && Objects.equals(loggingInfo(), other.loggingInfo())
&& Objects.equals(numberOfBrokerNodes(), other.numberOfBrokerNodes()) && hasTags() == other.hasTags()
&& Objects.equals(tags(), other.tags()) && Objects.equals(storageModeAsString(), other.storageModeAsString());
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*/
@Override
public final String toString() {
return ToString.builder("CreateClusterRequest").add("BrokerNodeGroupInfo", brokerNodeGroupInfo())
.add("ClientAuthentication", clientAuthentication()).add("ClusterName", clusterName())
.add("ConfigurationInfo", configurationInfo()).add("EncryptionInfo", encryptionInfo())
.add("EnhancedMonitoring", enhancedMonitoringAsString()).add("OpenMonitoring", openMonitoring())
.add("KafkaVersion", kafkaVersion()).add("LoggingInfo", loggingInfo())
.add("NumberOfBrokerNodes", numberOfBrokerNodes()).add("Tags", hasTags() ? tags() : null)
.add("StorageMode", storageModeAsString()).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "BrokerNodeGroupInfo":
return Optional.ofNullable(clazz.cast(brokerNodeGroupInfo()));
case "ClientAuthentication":
return Optional.ofNullable(clazz.cast(clientAuthentication()));
case "ClusterName":
return Optional.ofNullable(clazz.cast(clusterName()));
case "ConfigurationInfo":
return Optional.ofNullable(clazz.cast(configurationInfo()));
case "EncryptionInfo":
return Optional.ofNullable(clazz.cast(encryptionInfo()));
case "EnhancedMonitoring":
return Optional.ofNullable(clazz.cast(enhancedMonitoringAsString()));
case "OpenMonitoring":
return Optional.ofNullable(clazz.cast(openMonitoring()));
case "KafkaVersion":
return Optional.ofNullable(clazz.cast(kafkaVersion()));
case "LoggingInfo":
return Optional.ofNullable(clazz.cast(loggingInfo()));
case "NumberOfBrokerNodes":
return Optional.ofNullable(clazz.cast(numberOfBrokerNodes()));
case "Tags":
return Optional.ofNullable(clazz.cast(tags()));
case "StorageMode":
return Optional.ofNullable(clazz.cast(storageModeAsString()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function getter(Function g) {
return obj -> g.apply((CreateClusterRequest) obj);
}
private static BiConsumer setter(BiConsumer s) {
return (obj, val) -> s.accept((Builder) obj, val);
}
public interface Builder extends KafkaRequest.Builder, SdkPojo, CopyableBuilder {
/**
*
*
* Information about the broker nodes in the cluster.
*
*
* @param brokerNodeGroupInfo
*
* Information about the broker nodes in the cluster.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder brokerNodeGroupInfo(BrokerNodeGroupInfo brokerNodeGroupInfo);
/**
*
*
* Information about the broker nodes in the cluster.
*
*
* This is a convenience method that creates an instance of the {@link BrokerNodeGroupInfo.Builder} avoiding the
* need to create one manually via {@link BrokerNodeGroupInfo#builder()}.
*
*
* When the {@link Consumer} completes, {@link BrokerNodeGroupInfo.Builder#build()} is called immediately and
* its result is passed to {@link #brokerNodeGroupInfo(BrokerNodeGroupInfo)}.
*
* @param brokerNodeGroupInfo
* a consumer that will call methods on {@link BrokerNodeGroupInfo.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #brokerNodeGroupInfo(BrokerNodeGroupInfo)
*/
default Builder brokerNodeGroupInfo(Consumer brokerNodeGroupInfo) {
return brokerNodeGroupInfo(BrokerNodeGroupInfo.builder().applyMutation(brokerNodeGroupInfo).build());
}
/**
*
*
* Includes all client authentication related information.
*
*
* @param clientAuthentication
*
* Includes all client authentication related information.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder clientAuthentication(ClientAuthentication clientAuthentication);
/**
*
*
* Includes all client authentication related information.
*
*
* This is a convenience method that creates an instance of the {@link ClientAuthentication.Builder} avoiding
* the need to create one manually via {@link ClientAuthentication#builder()}.
*
*
* When the {@link Consumer} completes, {@link ClientAuthentication.Builder#build()} is called immediately and
* its result is passed to {@link #clientAuthentication(ClientAuthentication)}.
*
* @param clientAuthentication
* a consumer that will call methods on {@link ClientAuthentication.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #clientAuthentication(ClientAuthentication)
*/
default Builder clientAuthentication(Consumer clientAuthentication) {
return clientAuthentication(ClientAuthentication.builder().applyMutation(clientAuthentication).build());
}
/**
*
*
* The name of the cluster.
*
*
* @param clusterName
*
* The name of the cluster.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder clusterName(String clusterName);
/**
*
*
* Represents the configuration that you want MSK to use for the brokers in a cluster.
*
*
* @param configurationInfo
*
* Represents the configuration that you want MSK to use for the brokers in a cluster.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder configurationInfo(ConfigurationInfo configurationInfo);
/**
*
*
* Represents the configuration that you want MSK to use for the brokers in a cluster.
*
*
* This is a convenience method that creates an instance of the {@link ConfigurationInfo.Builder} avoiding the
* need to create one manually via {@link ConfigurationInfo#builder()}.
*
*
* When the {@link Consumer} completes, {@link ConfigurationInfo.Builder#build()} is called immediately and its
* result is passed to {@link #configurationInfo(ConfigurationInfo)}.
*
* @param configurationInfo
* a consumer that will call methods on {@link ConfigurationInfo.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #configurationInfo(ConfigurationInfo)
*/
default Builder configurationInfo(Consumer configurationInfo) {
return configurationInfo(ConfigurationInfo.builder().applyMutation(configurationInfo).build());
}
/**
*
*
* Includes all encryption-related information.
*
*
* @param encryptionInfo
*
* Includes all encryption-related information.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder encryptionInfo(EncryptionInfo encryptionInfo);
/**
*
*
* Includes all encryption-related information.
*
*
* This is a convenience method that creates an instance of the {@link EncryptionInfo.Builder} avoiding the need
* to create one manually via {@link EncryptionInfo#builder()}.
*
*
* When the {@link Consumer} completes, {@link EncryptionInfo.Builder#build()} is called immediately and its
* result is passed to {@link #encryptionInfo(EncryptionInfo)}.
*
* @param encryptionInfo
* a consumer that will call methods on {@link EncryptionInfo.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #encryptionInfo(EncryptionInfo)
*/
default Builder encryptionInfo(Consumer encryptionInfo) {
return encryptionInfo(EncryptionInfo.builder().applyMutation(encryptionInfo).build());
}
/**
*
*
* Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER,
* PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
*
*
* @param enhancedMonitoring
*
* Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER,
* PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
*
* @see EnhancedMonitoring
* @return Returns a reference to this object so that method calls can be chained together.
* @see EnhancedMonitoring
*/
Builder enhancedMonitoring(String enhancedMonitoring);
/**
*
*
* Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER,
* PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
*
*
* @param enhancedMonitoring
*
* Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER,
* PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
*
* @see EnhancedMonitoring
* @return Returns a reference to this object so that method calls can be chained together.
* @see EnhancedMonitoring
*/
Builder enhancedMonitoring(EnhancedMonitoring enhancedMonitoring);
/**
*
*
* The settings for open monitoring.
*
*
* @param openMonitoring
*
* The settings for open monitoring.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder openMonitoring(OpenMonitoringInfo openMonitoring);
/**
*
*
* The settings for open monitoring.
*
*
* This is a convenience method that creates an instance of the {@link OpenMonitoringInfo.Builder} avoiding the
* need to create one manually via {@link OpenMonitoringInfo#builder()}.
*
*
* When the {@link Consumer} completes, {@link OpenMonitoringInfo.Builder#build()} is called immediately and its
* result is passed to {@link #openMonitoring(OpenMonitoringInfo)}.
*
* @param openMonitoring
* a consumer that will call methods on {@link OpenMonitoringInfo.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #openMonitoring(OpenMonitoringInfo)
*/
default Builder openMonitoring(Consumer openMonitoring) {
return openMonitoring(OpenMonitoringInfo.builder().applyMutation(openMonitoring).build());
}
/**
*
*
* The version of Apache Kafka.
*
*
* @param kafkaVersion
*
* The version of Apache Kafka.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder kafkaVersion(String kafkaVersion);
/**
* Sets the value of the LoggingInfo property for this object.
*
* @param loggingInfo
* The new value for the LoggingInfo property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder loggingInfo(LoggingInfo loggingInfo);
/**
* Sets the value of the LoggingInfo property for this object.
*
* This is a convenience method that creates an instance of the {@link LoggingInfo.Builder} avoiding the need to
* create one manually via {@link LoggingInfo#builder()}.
*
*
* When the {@link Consumer} completes, {@link LoggingInfo.Builder#build()} is called immediately and its result
* is passed to {@link #loggingInfo(LoggingInfo)}.
*
* @param loggingInfo
* a consumer that will call methods on {@link LoggingInfo.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #loggingInfo(LoggingInfo)
*/
default Builder loggingInfo(Consumer loggingInfo) {
return loggingInfo(LoggingInfo.builder().applyMutation(loggingInfo).build());
}
/**
*
*
* The number of broker nodes in the cluster.
*
*
* @param numberOfBrokerNodes
*
* The number of broker nodes in the cluster.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder numberOfBrokerNodes(Integer numberOfBrokerNodes);
/**
*
*
* Create tags when creating the cluster.
*
*
* @param tags
*
* Create tags when creating the cluster.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder tags(Map tags);
/**
*
*
* This controls storage mode for supported storage tiers.
*
*
* @param storageMode
*
* This controls storage mode for supported storage tiers.
*
* @see StorageMode
* @return Returns a reference to this object so that method calls can be chained together.
* @see StorageMode
*/
Builder storageMode(String storageMode);
/**
*
*
* This controls storage mode for supported storage tiers.
*
*
* @param storageMode
*
* This controls storage mode for supported storage tiers.
*
* @see StorageMode
* @return Returns a reference to this object so that method calls can be chained together.
* @see StorageMode
*/
Builder storageMode(StorageMode storageMode);
@Override
Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
@Override
Builder overrideConfiguration(Consumer builderConsumer);
}
static final class BuilderImpl extends KafkaRequest.BuilderImpl implements Builder {
private BrokerNodeGroupInfo brokerNodeGroupInfo;
private ClientAuthentication clientAuthentication;
private String clusterName;
private ConfigurationInfo configurationInfo;
private EncryptionInfo encryptionInfo;
private String enhancedMonitoring;
private OpenMonitoringInfo openMonitoring;
private String kafkaVersion;
private LoggingInfo loggingInfo;
private Integer numberOfBrokerNodes;
private Map tags = DefaultSdkAutoConstructMap.getInstance();
private String storageMode;
private BuilderImpl() {
}
private BuilderImpl(CreateClusterRequest model) {
super(model);
brokerNodeGroupInfo(model.brokerNodeGroupInfo);
clientAuthentication(model.clientAuthentication);
clusterName(model.clusterName);
configurationInfo(model.configurationInfo);
encryptionInfo(model.encryptionInfo);
enhancedMonitoring(model.enhancedMonitoring);
openMonitoring(model.openMonitoring);
kafkaVersion(model.kafkaVersion);
loggingInfo(model.loggingInfo);
numberOfBrokerNodes(model.numberOfBrokerNodes);
tags(model.tags);
storageMode(model.storageMode);
}
public final BrokerNodeGroupInfo.Builder getBrokerNodeGroupInfo() {
return brokerNodeGroupInfo != null ? brokerNodeGroupInfo.toBuilder() : null;
}
public final void setBrokerNodeGroupInfo(BrokerNodeGroupInfo.BuilderImpl brokerNodeGroupInfo) {
this.brokerNodeGroupInfo = brokerNodeGroupInfo != null ? brokerNodeGroupInfo.build() : null;
}
@Override
public final Builder brokerNodeGroupInfo(BrokerNodeGroupInfo brokerNodeGroupInfo) {
this.brokerNodeGroupInfo = brokerNodeGroupInfo;
return this;
}
public final ClientAuthentication.Builder getClientAuthentication() {
return clientAuthentication != null ? clientAuthentication.toBuilder() : null;
}
public final void setClientAuthentication(ClientAuthentication.BuilderImpl clientAuthentication) {
this.clientAuthentication = clientAuthentication != null ? clientAuthentication.build() : null;
}
@Override
public final Builder clientAuthentication(ClientAuthentication clientAuthentication) {
this.clientAuthentication = clientAuthentication;
return this;
}
public final String getClusterName() {
return clusterName;
}
public final void setClusterName(String clusterName) {
this.clusterName = clusterName;
}
@Override
public final Builder clusterName(String clusterName) {
this.clusterName = clusterName;
return this;
}
public final ConfigurationInfo.Builder getConfigurationInfo() {
return configurationInfo != null ? configurationInfo.toBuilder() : null;
}
public final void setConfigurationInfo(ConfigurationInfo.BuilderImpl configurationInfo) {
this.configurationInfo = configurationInfo != null ? configurationInfo.build() : null;
}
@Override
public final Builder configurationInfo(ConfigurationInfo configurationInfo) {
this.configurationInfo = configurationInfo;
return this;
}
public final EncryptionInfo.Builder getEncryptionInfo() {
return encryptionInfo != null ? encryptionInfo.toBuilder() : null;
}
public final void setEncryptionInfo(EncryptionInfo.BuilderImpl encryptionInfo) {
this.encryptionInfo = encryptionInfo != null ? encryptionInfo.build() : null;
}
@Override
public final Builder encryptionInfo(EncryptionInfo encryptionInfo) {
this.encryptionInfo = encryptionInfo;
return this;
}
public final String getEnhancedMonitoring() {
return enhancedMonitoring;
}
public final void setEnhancedMonitoring(String enhancedMonitoring) {
this.enhancedMonitoring = enhancedMonitoring;
}
@Override
public final Builder enhancedMonitoring(String enhancedMonitoring) {
this.enhancedMonitoring = enhancedMonitoring;
return this;
}
@Override
public final Builder enhancedMonitoring(EnhancedMonitoring enhancedMonitoring) {
this.enhancedMonitoring(enhancedMonitoring == null ? null : enhancedMonitoring.toString());
return this;
}
public final OpenMonitoringInfo.Builder getOpenMonitoring() {
return openMonitoring != null ? openMonitoring.toBuilder() : null;
}
public final void setOpenMonitoring(OpenMonitoringInfo.BuilderImpl openMonitoring) {
this.openMonitoring = openMonitoring != null ? openMonitoring.build() : null;
}
@Override
public final Builder openMonitoring(OpenMonitoringInfo openMonitoring) {
this.openMonitoring = openMonitoring;
return this;
}
public final String getKafkaVersion() {
return kafkaVersion;
}
public final void setKafkaVersion(String kafkaVersion) {
this.kafkaVersion = kafkaVersion;
}
@Override
public final Builder kafkaVersion(String kafkaVersion) {
this.kafkaVersion = kafkaVersion;
return this;
}
public final LoggingInfo.Builder getLoggingInfo() {
return loggingInfo != null ? loggingInfo.toBuilder() : null;
}
public final void setLoggingInfo(LoggingInfo.BuilderImpl loggingInfo) {
this.loggingInfo = loggingInfo != null ? loggingInfo.build() : null;
}
@Override
public final Builder loggingInfo(LoggingInfo loggingInfo) {
this.loggingInfo = loggingInfo;
return this;
}
public final Integer getNumberOfBrokerNodes() {
return numberOfBrokerNodes;
}
public final void setNumberOfBrokerNodes(Integer numberOfBrokerNodes) {
this.numberOfBrokerNodes = numberOfBrokerNodes;
}
@Override
public final Builder numberOfBrokerNodes(Integer numberOfBrokerNodes) {
this.numberOfBrokerNodes = numberOfBrokerNodes;
return this;
}
public final Map getTags() {
if (tags instanceof SdkAutoConstructMap) {
return null;
}
return tags;
}
public final void setTags(Map tags) {
this.tags = ___mapOf__stringCopier.copy(tags);
}
@Override
public final Builder tags(Map tags) {
this.tags = ___mapOf__stringCopier.copy(tags);
return this;
}
public final String getStorageMode() {
return storageMode;
}
public final void setStorageMode(String storageMode) {
this.storageMode = storageMode;
}
@Override
public final Builder storageMode(String storageMode) {
this.storageMode = storageMode;
return this;
}
@Override
public final Builder storageMode(StorageMode storageMode) {
this.storageMode(storageMode == null ? null : storageMode.toString());
return this;
}
@Override
public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
super.overrideConfiguration(overrideConfiguration);
return this;
}
@Override
public Builder overrideConfiguration(Consumer builderConsumer) {
super.overrideConfiguration(builderConsumer);
return this;
}
@Override
public CreateClusterRequest build() {
return new CreateClusterRequest(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
}
}