if (value.isPresent()) { if (stream.getPartitions() != value.get().getPartitions()) { throw new IllegalArgumentException(String.format( "Stream registry does not currently support modifying the initial partition count. " + "Requested: %s. Current count: %s", stream.getPartitions(), value.get().getPartitions())); } else if (stream.getReplicationFactor() != value.get().getReplicationFactor()) { throw new IllegalArgumentException(String.format(
.replicatedVpcList(avroStream.getReplicatedVpcList()) .topicConfig(avroStream.getTopicConfig()) .partitions(avroStream.getPartitions()) .replicationFactor(avroStream.getReplicationFactor()) .build();